File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ library
92
92
93
93
exposed-modules : HaskellWorks.Control.Monad
94
94
HaskellWorks.Data.String
95
+ HaskellWorks.Either
95
96
HaskellWorks.Error
96
97
HaskellWorks.Error.Types
97
98
HaskellWorks.Error.Types.GenericError
Original file line number Diff line number Diff line change
1
+ module HaskellWorks.Either
2
+ ( orElse
3
+ ) where
4
+
5
+ import Data.Either
6
+ import Data.Function
7
+
8
+ orElse :: Either e a -> Either e a -> Either e a
9
+ orElse a b =
10
+ either (const b) Right a
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ module HaskellWorks.Prelude
71
71
(&&) ,
72
72
(||) ,
73
73
(.) ,
74
- (</>) ,
75
74
76
75
void ,
77
76
mapM_ ,
@@ -102,6 +101,7 @@ module HaskellWorks.Prelude
102
101
(<$!>) ,
103
102
104
103
(<$>) ,
104
+ (<&>) ,
105
105
106
106
(<**>) ,
107
107
liftA ,
@@ -111,13 +111,6 @@ module HaskellWorks.Prelude
111
111
112
112
for_ ,
113
113
114
- zip ,
115
- zip3 ,
116
- zipWith ,
117
- zipWith3 ,
118
- unzip ,
119
- unzip3 ,
120
-
121
114
Read (.. ),
122
115
readEither ,
123
116
@@ -148,6 +141,7 @@ module HaskellWorks.Prelude
148
141
149
142
Monad (.. ),
150
143
MonadFail (.. ),
144
+ MonadIO (.. ),
151
145
MonadPlus (.. ),
152
146
Applicative (.. ),
153
147
Alternative (.. ),
@@ -194,6 +188,7 @@ module HaskellWorks.Prelude
194
188
import Control.Applicative
195
189
import Control.Exception
196
190
import Control.Monad
191
+ import Control.Monad.IO.Class
197
192
import Control.Monad.Trans.Except
198
193
import Data.Bifunctor
199
194
import Data.Bool
@@ -205,6 +200,7 @@ import Data.Either
205
200
import Data.Eq
206
201
import Data.Foldable
207
202
import Data.Function
203
+ import Data.Functor
208
204
import Data.Functor.Contravariant
209
205
import Data.Functor.Contravariant.Divisible
210
206
import Data.Functor.Identity
@@ -229,7 +225,6 @@ import GHC.Real
229
225
import GHC.Stack
230
226
import HaskellWorks.Error
231
227
import Prelude
232
- import System.FilePath
233
228
import System.IO (Handle )
234
229
import Text.Read
235
230
You can’t perform that action at this time.
0 commit comments