make FormResult an instance od Eq

This commit is contained in:
Jonathan Lamothe 2019-01-18 12:48:36 -05:00
parent 673db5f6ff
commit 429f78859c

View File

@ -50,7 +50,7 @@ import Data.Foldable
data FormResult a = FormMissing
| FormFailure [Text]
| FormSuccess a
deriving Show
deriving (Show, Eq)
instance Functor FormResult where
fmap _ FormMissing = FormMissing
fmap _ (FormFailure errs) = FormFailure errs