Add Show instance for WeedError
This commit is contained in:
parent
86dd243c11
commit
e942544044
1 changed files with 1 additions and 0 deletions
|
|
@ -63,6 +63,7 @@ harmless :: e -> Weed e ()
|
|||
harmless e = Weed (Endo (e:)) (Right ())
|
||||
|
||||
data WeedError a = WeedError a String
|
||||
deriving (Show)
|
||||
|
||||
instance Functor WeedError where
|
||||
fmap f (WeedError a s) = WeedError (f a) s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue