An example Haskell file. This defines a module which can be imported by other modules in project.
{-# LANGUAGE GADTs #-} -- (1)!
module Chess where -- (2)!
-- (3)!
data Piece where 
    Bishop :: Piece
    Rook   :: Piece
isBishop :: Piece -> Bool
isBishop Bishop = True
isBishop _ = False
- Language extensions go here.
- Module name must match the file name.
- Code goes here and below.
  
    
      Last update:
      January 18, 2023
      
        
Created: January 11, 2023
  
  
  Created: January 11, 2023