X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Flatten.hs;h=8adce9fb0522f39780cc80aa8ac30e50b0a72e09;hb=d8c4021114afc1f860763b3a8dceff3f219d4798;hp=4bb6e71b268fd140c7f60df47754f12c9dffa6c8;hpb=29ee33754fc52a1a46fd44aba98a4dce8c81ce58;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Flatten.hs b/Flatten.hs index 4bb6e71..8adce9f 100644 --- a/Flatten.hs +++ b/Flatten.hs @@ -15,7 +15,7 @@ import qualified Data.Traversable as Traversable import qualified Data.Foldable as Foldable import Control.Applicative import Outputable ( showSDoc, ppr ) -import qualified Control.Monad.State as State +import qualified Control.Monad.Trans.State as State import HsValueMap import TranslatorTypes @@ -222,7 +222,7 @@ flattenExpr binds app@(App _ _) = do flattenBuildTupleExpr binds args = do -- Flatten each of our args - flat_args <- (State.mapM (flattenExpr binds) args) + flat_args <- (mapM (flattenExpr binds) args) -- Check and split each of the arguments let (_, arg_ress) = unzip (zipWith checkArg args flat_args) let res = Tuple arg_ress @@ -233,7 +233,7 @@ flattenExpr binds app@(App _ _) = do -- Find the function to call let func = appToHsFunction ty f args -- Flatten each of our args - flat_args <- (State.mapM (flattenExpr binds) args) + flat_args <- (mapM (flattenExpr binds) args) -- Check and split each of the arguments let (_, arg_ress) = unzip (zipWith checkArg args flat_args) -- Generate signals for our result