[SOLVED] CS flex {-# OPTIONS_GHC -fwarn-incomplete-patterns #-}

$25

File Name: CS_flex_____OPTIONS_GHC__fwarn_incomplete_patterns____.zip
File Size: 508.68 KB

5/5 - (1 vote)

{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
{-# OPTIONS_GHC -fwarn-incomplete-uni-patterns #-}
{-# LANGUAGE FlexibleInstances #-}

module Assignment06 where

import Control.Applicative(liftA, liftA2, liftA3)

import ContextFree

import qualified Memoization as M

data Tree nt t = Leaf nt t | NonLeaf nt (Tree nt t) (Tree nt t) deriving Show

tree1 :: Tree Cat String
tree1 = NonLeaf VP (NonLeaf VP (Leaf V watches) (Leaf NP spies))
(NonLeaf PP (Leaf P with) (Leaf NP telescopes))

tree2 :: Tree Cat String
tree2 = NonLeaf VP (Leaf V watches)
(NonLeaf NP (Leaf NP spies) (NonLeaf PP (Leaf P with) (Leaf NP telescopes)))

IMPORTANT: Please do not change anything above here.
Write all your code below this line.

Shopping Cart
[SOLVED] CS flex {-# OPTIONS_GHC -fwarn-incomplete-patterns #-}[SOLVED] CS flex {-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
$25