Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Derive type class for parameterized data type
{-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE RankNTypes #-} --{-# LANGUAGE UndecidableInstances #-} data PersonF f = PersonF { name :: f String , age :: f Int , likes :: [String] } --deriving (Show, Eq) -- How can I derive this? deriving instance Eq (f a) => Eq (PersonF f) main = print $ "Hello, world!"
run
|
edit
|
history
|
help
0
Lowest Common Ancestor in a Binary Tree
Niet
Calculate Integral of function
haskell fibonacci
sumer
Reader
project euler 1, haskel
Advansed Hello Word
Lambda Parser with long ids
first haskell program