File tree Expand file tree Collapse file tree 4 files changed +16
-21
lines changed Expand file tree Collapse file tree 4 files changed +16
-21
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,15 @@ common project-config
53
53
FlexibleContexts
54
54
FlexibleInstances
55
55
LambdaCase
56
+ NoFieldSelectors
56
57
NoImplicitPrelude
58
+ OverloadedRecordDot
57
59
OverloadedStrings
58
60
RankNTypes
59
61
ScopedTypeVariables
60
62
TypeApplications
61
63
TypeOperators
64
+ TypeSynonymInstances
62
65
ghc-options : -Wall
63
66
64
67
if flag(werror)
@@ -88,7 +91,6 @@ library
88
91
HaskellWorks.Data.String
89
92
HaskellWorks.Error
90
93
HaskellWorks.Error.Types
91
- HaskellWorks.Error.Types.All
92
94
HaskellWorks.Error.Types.GenericError
93
95
HaskellWorks.Error.Types.TimedOut
94
96
HaskellWorks.IO.Network.NamedPipe
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ onLeftM_ :: forall e a m. ()
67
67
onLeftM_ f action = onLeft_ f =<< action
68
68
69
69
-- | Handle the case where a list with many (more than one) elements.
70
- onMany :: forall a m . ()
70
+ onMany :: forall a m . ()
71
71
=> Monad m
72
72
=> (NonEmpty a -> m (Maybe a ))
73
73
-> [a ]
@@ -78,7 +78,7 @@ onMany h as = case as of
78
78
(x : xs) -> h (x :| xs)
79
79
80
80
-- | Handle the case where an effectul function returns a list with many (more than one) elements.
81
- onManyM :: forall a m . ()
81
+ onManyM :: forall a m . ()
82
82
=> Monad m
83
83
=> (NonEmpty a -> m (Maybe a ))
84
84
-> m [a ]
@@ -87,7 +87,7 @@ onManyM h f =
87
87
f >>= onMany h
88
88
89
89
-- | Handle the case where a list with many (more than one) elements.
90
- onMany_ :: forall a m . ()
90
+ onMany_ :: forall a m . ()
91
91
=> Monad m
92
92
=> m (Maybe a )
93
93
-> [a ]
@@ -98,7 +98,7 @@ onMany_ h as = case as of
98
98
_ -> h
99
99
100
100
-- | Handle the case where an effectul function returns a list with many (more than one) elements.
101
- onManyM_ :: forall a m . ()
101
+ onManyM_ :: forall a m . ()
102
102
=> Monad m
103
103
=> m (Maybe a )
104
104
-> m [a ]
Original file line number Diff line number Diff line change 1
- module HaskellWorks.Error.Types
2
- ( -- * Error types
3
- GenericError (GenericError ),
4
- TimedOut (TimedOut ),
5
- ) where
1
+ {-# LANGUAGE DuplicateRecordFields #-}
2
+ {-# LANGUAGE TypeSynonymInstances #-}
6
3
7
- import HaskellWorks.Error.Types.All
4
+ module HaskellWorks.Error.Types (
5
+ GenericError (.. ),
6
+ TimedOut (.. ),
7
+ ) where
8
+
9
+ import HaskellWorks.Error.Types.GenericError
10
+ import HaskellWorks.Error.Types.TimedOut
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments