Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone

Cmd.Repl.Fast

Description

The full haskell interpretation loads a whole bunch of modules and can be slow. Shortcut a few common commands so they happen quickly.

Synopsis

Documentation

fast_interpret :: String -> Maybe (Cmd.CmdT IO ReplProtocol.CmdResult) Source #

interpret loads a whole bunch of modules and can be slow. Shortcut a few common commands so they happen quickly.

val :: Read a => String -> Maybe a Source #

lex_fancy :: String -> [(String, String)] Source #

A version of lex that understands qualified names.

It also lexes parenthesized text as a single token, but it doesn't count open parens so it doesn't work for nested ones. TODO count parens, or come up with a better way to parse haskell