24 Nov
2006
24 Nov
'06
6:13 a.m.
On 11/23/06, Seth Gordon <sethg@ropine.com> wrote:
takusen-test.hs:11:57: Couldn't match expected type `forall mark. DBM mark Session a' against inferred type `DBM mark sess ()' In the second argument of `($)', namely `main'' In the expression: (withSession (connect [CAdbname "template1"])) $ main' In the expression: do (withSession (connect [CAdbname "template1"])) $ main'
Ah, the dreaded $ with existential types problem. $ is not quite equivalent to application -- the type checker does something funny with forall types. Just take out the $ and you'll be fine. -- Taral <taralx@gmail.com> "You can't prove anything." -- Gödel's Incompetence Theorem