[Solved] Haskell Data Types
By using ghci and simply inputing the code snippets you will see which of the values are accepted: Prelude> data Bin = B Bin | C [ Int] Prelude> a = C [ ] Prelude> b = B ( B C [ 2]) <interactive>:3:9: error: • Couldn’t match expected type ‘[Integer] -> Bin’ with actual … Read more