improve hnix REPL help

all commands needs to prefixed by :
This commit is contained in:
Jörg Thalheim 2019-01-27 20:07:43 +00:00
parent 617d0867ab
commit 8b10c79e41
No known key found for this signature in database
GPG Key ID: B3F5D81B0C6967C4
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ help :: forall e m . (MonadNix e m, MonadIO m, MonadException m)
=> [String] -> Repl e m ()
help _ = liftIO $ do
putStrLn "Available commands:\n"
mapM_ putStrLn $ map fst (options @e @m)
mapM_ putStrLn $ map (\o -> ":" ++ (fst o)) (options @e @m)
completer :: (MonadNix e m, MonadIO m) => CompleterStyle (StateT (IState m) m)
completer = Prefix (wordCompleter comp) defaultMatcher