Skip to content

Commit

Permalink
Correct the order of declaratoins in functors.
Browse files Browse the repository at this point in the history
Fixes #1385
  • Loading branch information
yav committed Jul 15, 2022
1 parent 83f4575 commit 5ece8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cryptol/TypeCheck/Monad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ endSubmodule =
case iScope rw of
x@Module { mName = SubModule m } : y : more -> rw { iScope = z : more }
where
x1 = x { mName = m }
x1 = x { mName = m, mDecls = reverse (mDecls x) }

isFun = isParametrizedModule x1

Expand Down

0 comments on commit 5ece8bb

Please sign in to comment.