1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 13:02:37 +03:00

Define a Functor instance for Evaluator.

This commit is contained in:
Rob Rix 2018-02-28 10:40:41 -05:00
parent d9ddce8b5e
commit 054b4d5bc2

View File

@ -16,3 +16,7 @@ data Evaluator effects value a
] effects
=> Eff effects a
}
instance Functor (Evaluator effects value) where
fmap f (Evaluator run) = Evaluator (fmap f run)