Skip to content

Commit

Permalink
more polymorphic
Browse files Browse the repository at this point in the history
  • Loading branch information
tonymorris committed Jun 12, 2018
1 parent 22e926b commit 7454505
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Control/Exitcode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ _ExitFailure =

_ExitSuccess ::
Prism'
Exitcode0
()
(Exitcode a)
a
_ExitSuccess =
prism'
(\() -> exitsuccess0)
exitsuccess
(\(ExitcodeT (Identity x)) -> x ^? _Right)

instance Functor f => Functor (ExitcodeT f) where
Expand Down

0 comments on commit 7454505

Please sign in to comment.