mirror of
https://github.com/github/semantic.git
synced 2024-12-20 13:21:59 +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 #-}
|
{-# LANGUAGE UndecidableInstances #-}
|
||||||
module Prologue
|
module Prologue
|
||||||
( module X
|
( module X
|
||||||
, eitherA
|
|
||||||
, eitherM
|
, eitherM
|
||||||
, foldMapA
|
, foldMapA
|
||||||
, maybeM
|
, maybeM
|
||||||
@ -82,7 +81,3 @@ maybeM f = maybe f pure
|
|||||||
|
|
||||||
eitherM :: Applicative f => (a -> f b) -> Either a b -> f b
|
eitherM :: Applicative f => (a -> f b) -> Either a b -> f b
|
||||||
eitherM f = either f pure
|
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