mirror of
https://github.com/github/semantic.git
synced 2024-12-20 05:11:44 +03:00
FatalException doesn't have to be in there
This commit is contained in:
parent
13ac7b4942
commit
55d22b1a0e
@ -1,7 +1,6 @@
|
||||
{-# LANGUAGE UndecidableInstances #-}
|
||||
module Prologue
|
||||
( module X
|
||||
, eitherA
|
||||
, eitherM
|
||||
, foldMapA
|
||||
, maybeM
|
||||
@ -82,7 +81,3 @@ maybeM f = maybe f pure
|
||||
|
||||
eitherM :: Applicative f => (a -> f b) -> Either a b -> f b
|
||||
eitherM f = either f pure
|
||||
|
||||
-- Promote a function to either-applicatives.
|
||||
eitherA :: Applicative f => (b -> f (Either a c)) -> Either a b -> f (Either a c)
|
||||
eitherA = either (pure . Left)
|
||||
|
Loading…
Reference in New Issue
Block a user