Advertisement
Guest User

Untitled

a guest
Oct 16th, 2021
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import Data.List
  2.  
  3. data Pieza = Peon|Caballo|Alfil|Torre|Dama|Rey deriving (Enum)
  4. data Color = Blanco|Negro deriving (Enum)
  5. data Trebejo = (Pieza, Color)
  6.  
  7.  
  8.  
  9.  
  10. $ ghc chess.hs
  11. [1 of 1] Compiling Main ( chess.hs, chess.o )
  12.  
  13. chess.hs:5:16: error: Illegal binding of built-in syntax: (,)
  14. |
  15. 5 | data Trebejo = (Pieza, Color)
  16. | ^^^^^^^^^^^^^^
  17. [haroldo@semiosis haskell]$
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement