1
1
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:
Patrick Thomson 2019-01-25 00:19:06 -05:00
parent 13ac7b4942
commit 55d22b1a0e

View File

@ -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)