
7 Oct
2005
7 Oct
'05
2:01 a.m.
J. Garrett Morris writes:
Hello,
I'm attempting to use GADTs for the first time, and I'm running into an (I think) odd error. My file includes:
data DFExpr :: * -> * where Deriv :: (Num t) => t -> Deriv Int (DFExpr t) (DFExpr t)
I think you want something like this:
Deriv :: Int -> DFExpr t -> DFExpr t -> DFExpr t
Ignorning the other clauses, it's equivalent to
data DFExpr t = Deriv Int (DFExpr t) (DFExpr t)
--
David Menendez
7165
Age (days ago)
7165
Last active (days ago)
0 comments
1 participants
participants (1)
-
David Menendez