@@ -123,7 +123,7 @@ reorder (A.A ann expression) =
123 let defss = map Graph.flattenSCC sccs
123 let defss = map Graph.flattenSCC sccs
125 -- remove let-bound variables from the context
125 -- remove let-bound variables from the context
126− forM_ defs $ \(Canonical.Definition pattern _ _) -> do
126+ forM_ defs $ \(Canonical.Definition _ pattern _ _) -> do
127 bound pattern
127 bound pattern
128 mapM free (ctors pattern)
128 mapM free (ctors pattern)
@@ -193,7 +193,7 @@ buildDefGraph defs =
193 zipWith (\n (pdef,deps) -> (pdef,n,deps)) [0..]
193 zipWith (\n (pdef,deps) -> (pdef,n,deps)) [0..]
195 variableToKey :: (Canonical.Def, Int, [String]) -> [(String, Int)]
195 variableToKey :: (Canonical.Def, Int, [String]) -> [(String, Int)]
196− variableToKey (Canonical.Definition pattern _ _, key, _) =
196+ variableToKey (Canonical.Definition _ pattern _ _, key, _) =
197 [ (var, key) | var <- P.boundVarList pattern ]
197 [ (var, key) | var <- P.boundVarList pattern ]
199 variableToKeyMap :: [(Canonical.Def, Int, [String])] -> Map.Map String Int
199 variableToKeyMap :: [(Canonical.Def, Int, [String])] -> Map.Map String Int
@@ -212,7 +212,7 @@ buildDefGraph defs =
212reorderAndGetDependencies
212reorderAndGetDependencies
213 :: Canonical.Def
213 :: Canonical.Def
214 -> State (Set.Set String) (Canonical.Def, [String])
214 -> State (Set.Set String) (Canonical.Def, [String])
215−reorderAndGetDependencies (Canonical.Definition pattern expr mType) =
215+reorderAndGetDependencies (Canonical.Definition facts pattern expr mType) =
216 do globalFrees <- get
216 do globalFrees <- get
217 -- work in a fresh environment
217 -- work in a fresh environment
218 put Set.empty
218 put Set.empty
@@ -220,4 +220,4 @@ reorderAndGetDependencies (Canonical.Definition pattern expr mType) =
220 localFrees <- get
220 localFrees <- get
221 -- merge with global frees
221 -- merge with global frees
222 modify (Set.union globalFrees)
222 modify (Set.union globalFrees)
223− return (Canonical.Definition pattern expr' mType, Set.toList localFrees)
223+ return (Canonical.Definition facts pattern expr' mType, Set.toList localFrees)