mirror of
https://github.com/github/semantic.git
synced 2024-12-30 18:36:27 +03:00
Define an Effect instance for Parse.
This commit is contained in:
parent
fca3027fc7
commit
bba02fe178
@ -14,3 +14,6 @@ deriving instance Functor m => Functor (Parse m)
|
||||
|
||||
instance HFunctor Parse where
|
||||
hmap f (Parse parser blob k) = Parse parser blob (f . k)
|
||||
|
||||
instance Effect Parse where
|
||||
handle state handler (Parse parser blob k) = Parse parser blob (handler . (<$ state) . k)
|
||||
|
Loading…
Reference in New Issue
Block a user