Skip to content

Commit 6e1e4f1

Browse files
committed
whoops (no more indefinite hangs)
1 parent 8f27c50 commit 6e1e4f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

run/REPL/Completions.hs

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ namesStr :: StateT (EvalSt a) IO [String]
1414
namesStr = gets (fmap T.unpack . M.keys . topLevel)
1515

1616
cyclicSimple :: [String] -> [Completion]
17-
cyclicSimple [] = []
18-
cyclicSimple xs = cycle $ fmap simpleCompletion xs
17+
cyclicSimple = fmap simpleCompletion
1918

2019
emdCompletions :: CompletionFunc (StateT (EvalSt a) IO)
2120
emdCompletions (":","") = pure (":", cyclicSimple [ "help", "h", "save", "load", "l", "r", "type", "t", "view", "quit", "q", "list" ])

0 commit comments

Comments
 (0)