mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-11-22 18:22:05 +03:00
Ditch mapLeft
This commit is contained in:
parent
e6ffbb62c2
commit
46b836796e
@ -4,12 +4,8 @@ env:
|
||||
- ghc=8.0.2
|
||||
- ghc=8.2.2
|
||||
- ghc=8.4.2
|
||||
- ghc=8.6.5 benchmarks=1 tests=1
|
||||
- ghc=8.8.1
|
||||
|
||||
jobs:
|
||||
allow_failures:
|
||||
- env: ghc=8.8.1
|
||||
- ghc=8.6.5
|
||||
- ghc=8.8.3 benchmarks=1 tests=1
|
||||
|
||||
services:
|
||||
- postgresql
|
||||
|
@ -1,7 +1,6 @@
|
||||
module Main.Prelude
|
||||
(
|
||||
module Exports,
|
||||
mapLeft,
|
||||
)
|
||||
where
|
||||
|
||||
@ -9,8 +8,3 @@ where
|
||||
-- rerebase
|
||||
-------------------------
|
||||
import Prelude as Exports
|
||||
|
||||
{-# INLINE mapLeft #-}
|
||||
mapLeft :: (a -> c) -> Either a b -> Either c b
|
||||
mapLeft f =
|
||||
either (Left . f) Right
|
||||
|
Loading…
Reference in New Issue
Block a user