Remove warnings and rename new token
This commit is contained in:
parent
06067a6cfc
commit
dad5724af8
|
@ -1,3 +1,4 @@
|
||||||
|
{-# LANGUAGE GADTs #-}
|
||||||
module ComputationM
|
module ComputationM
|
||||||
( ComputationM
|
( ComputationM
|
||||||
, Token
|
, Token
|
||||||
|
@ -28,7 +29,7 @@ deriving instance (Show a, Show b) => Show (TypedRun a b)
|
||||||
|
|
||||||
data Token a where
|
data Token a where
|
||||||
Token :: Int -> Token a
|
Token :: Int -> Token a
|
||||||
ZipToken :: Token a -> Token b -> Token (a, b)
|
TupleToken :: Token a -> Token b -> Token (a, b)
|
||||||
NoToken :: Token ()
|
NoToken :: Token ()
|
||||||
|
|
||||||
deriving instance Show (Token a)
|
deriving instance Show (Token a)
|
||||||
|
@ -104,4 +105,4 @@ mapComputationM_ f input = do
|
||||||
filterComputationM :: Show a => (Token a -> ComputationM Bool) -> Token [a] -> ComputationM [a]
|
filterComputationM :: Show a => (Token a -> ComputationM Bool) -> Token [a] -> ComputationM [a]
|
||||||
filterComputationM f input = do
|
filterComputationM f input = do
|
||||||
conds <- mapComputationM f input
|
conds <- mapComputationM f input
|
||||||
genDependency (Dependency (ZipToken input conds) FilterComp)
|
genDependency (Dependency (TupleToken input conds) FilterComp)
|
||||||
|
|
Loading…
Reference in New Issue