You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that Djinn does not support directly referencing the Applicative class (as well as other classes & types from Prelude) out-of-the box; instead, the class’s methods must be specified from scratch. Upon doing so for Applicative, the following correct result is produced:
applyPure:: (Applicativef) =>f (t1->t2) ->t1->ft2
applyPure a b = a <*>pure b
-- or
applyPure a b =pure b *> (a <*>pure b)
Is there a possible way to import the Applicative class, or other relevant type definitions, rather than specifying them from scratch? I’m sure I must be missing something if I have to paste all of the following into Djinn in order to proceed:
Even if we could import these definitions, they would not work?
$ djinn
Welcome to Djinn version 2011-07-23.
Type :h to get help.
Djinn> :verboseHelp
...
there is no instantiation of polymorphic functions,
so classes where the methods are polymorphic do not work as expected.
...
-- applyPure cannot be realized.
It seems that Djinn does not support directly referencing the Applicative class (as well as other classes & types from Prelude) out-of-the box; instead, the class’s methods must be specified from scratch. Upon doing so for Applicative, the following correct result is produced:
Is there a possible way to import the Applicative class, or other relevant type definitions, rather than specifying them from scratch? I’m sure I must be missing something if I have to paste all of the following into Djinn in order to proceed:
The text was updated successfully, but these errors were encountered: