[Haskell-beginners] Generalised symbolic expressions
Imants Cekusins
imantc at gmail.com
Sun Aug 7 15:13:18 UTC 2016
> writing separate genEvalNat and genEvalString functions
.. here is another possibility:
data GenExpr_nat a = ...
data GenExpr_string a = ...
class GenEval exp a where
genEval ::exp a -> a
instance GenEval GenExpr_nat a where
...
instance GenEval GenExpr_string a where
...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160807/ea25d0db/attachment-0001.html>
More information about the Beginners
mailing list