This repository was archived by the owner on Apr 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ library
37
37
Data.Hole
38
38
Data.Module
39
39
Data.ScopeGraph
40
+ Data.Functor.Tagged
40
41
build-depends :
41
42
base >= 4.13 && < 5
42
43
, aeson
@@ -57,6 +58,7 @@ library
57
58
, streaming-process
58
59
, text ^>= 1.2.3.1
59
60
, temporary
61
+ , comonad
60
62
hs-source-dirs : src
61
63
default-language : Haskell2010
62
64
ghc-options :
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ module Stack.Graph
32
32
, root
33
33
-- * Miscellany
34
34
, tagGraphUniquely
35
- , simplify
36
35
-- * Testing stuff
37
36
, testGraph
38
37
, testGraph2
@@ -52,7 +51,7 @@ import Data.Function
52
51
import Data.Functor.Tagged
53
52
import Data.Map.Strict (Map )
54
53
import qualified Data.Map.Strict as Map
55
- import Data.Maybe.Exts
54
+ import Data.Maybe
56
55
import Data.Semilattice.Lower
57
56
import qualified Scope.Types as Scope
58
57
@@ -153,6 +152,9 @@ newScope name edges graph =
153
152
simplify :: Ord a => Graph a -> Graph a
154
153
simplify = Graph . Algebraic. simplify . unGraph
155
154
155
+ maybeM :: Applicative f => f a -> Maybe a -> f a
5236
td>
156
+ maybeM f = maybe f pure
157
+
156
158
testEdgeList :: [Node ]
157
159
testEdgeList =
158
160
[ Scope " current"
You can’t perform that action at this time.
0 commit comments