Skip to content
This repository was archived by the owner on Feb 1, 2019. It is now read-only.

Commit 9047776

Browse files
committed
recognize type signatures as parts of bindings.
1 parent d98c480 commit 9047776

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

haskell/ReplSession.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ prepareCode code = case parseCode code of
3535
else code
3636

3737
isFunDecl :: Decl -> Bool
38+
isFunDecl (TypeSig {}) = True
3839
isFunDecl (FunBind {}) = True
3940
isFunDecl (PatBind {}) = True
4041
isFunDecl _ = False

0 commit comments

Comments
 (0)