Module Repl.FregeRepl

Imports

Table of Content

Definitions

data ReplEnv

Constructors

ReplEnv {lastJavaGenSrc ∷ Maybe String, lastExternalScript ∷ Maybe String, opts ∷ ReplOpts, config ∷ InterpreterConfig, lineStart ∷ Int, state ∷ MutableIO InterpreterClassLoader}

Member Functions

configReplEnvInterpreterConfig

access field config

initialStateIO ReplEnv
lastExternalScriptReplEnvMaybe String

access field lastExternalScript

lastJavaGenSrcReplEnvMaybe String

access field lastJavaGenSrc

lineStartReplEnvInt

access field lineStart

optsReplEnvReplOpts

access field opts

resetRepl ()
stateReplEnvMutableIO InterpreterClassLoader

access field state

data ReplOpts

Constructors

ReplOpts {prompt ∷ String, multilinePrompt ∷ String, showLimit ∷ Int}

Member Functions

initialStateReplOpts
multilinePromptReplOptsString

access field multilinePrompt

promptReplOptsString

access field prompt

showLimitReplOptsInt

access field showLimit

data Repl a

Constructors

Repl {un ∷ StateT ReplEnv IO a}

Member Functions

getRepl ReplEnv
modify ∷ (ReplEnvReplEnv) → Repl ()
putReplEnvRepl ()
runRepl αReplEnvIO (α, ReplEnv)
runWithDefaultRepl αIO (α, ReplEnv)
unRepl αStateT ReplEnv IO α

access field un

data ReplResult

Constructors

CodeInfo {sourceRepr ∷ SourceInfo, compilerState ∷ Global, messages ∷ [Message]}
JavaSource (String)
ReplInfo [Message]

Member Functions

compilerStateReplResultGlobal

access field compilerState

messagesReplResult → [Message]

access field messages

sourceReprReplResultSourceInfo

access field sourceRepr

replReplIO a ⇒ a → ReplEnvIO ()
readReplIO a ⇒ a → ReplEnvIO Command
printReplIO a ⇒ a → CommandReplResultReplEnvIO ()
loopReplIO a ⇒ a → CommandReplResultReplEnvIO ()
evalCommandRepl ReplResult
parseAndSetCompilerFlagStringRepl ReplResult
clearCompilerFlagFlagRepl ReplResult
setCompilerFlagFlagRepl ReplResult
symbolsToReplInfoGlobal → [Symbol] → ReplResult
javaStringRepl ReplResult
slurpStringIO (Message | Command)
printMessagesReplIO a ⇒ a → [Message]IO ()
printSymbolTypeReplIO a ⇒ a → GlobalSymbolIO ()
readMultilineReplIO a ⇒ a → StringIO String
hoogleStringString
cmdHelp ∷ [(String, String)]
renderCmdHelp[(String, String)] → [String]
help ∷ [(String, String)] → [String]
urlContentsURLIO String
fileContentsStringIO String
scannerFromInputStreamMutableIO InputStreamSTMutable RealWorld Scanner
native new
javaSourceGUIStringIO ()
toURIURLST s URI
native toURI  throws URISyntaxException
asObjectaObject
pure native (java.lang.Object)
isEmptyStringBool
pure native isEmpty
replaceAllStringStringStringString
pure native replaceAll
indexOfStringStringInt
pure native indexOf
substringStringIntString
           | StringIntIntString
pure native substring
substringαStringIntString
pure native substring  overloads substring
substringβStringIntIntString
pure native substring  overloads substring
data Command

Constructors

Browse
BrowseModule (String)
DefMulti
Eval (String)
Help
HelpDoc (String)
History
Java
Load (String)
LoadExternal (String)   (String)
Quit
Reload
Reset
Set (String)
Skip
Type (String)
Unset (String)
Version

Member Functions

parseString → (String | Command)
parseCommandString → (String | Command)
vmVendorString
vmNameString
javaVersionString
toStringObjectString
pure native toString
sysinMutableIO InputStream
native java.lang.System.in

nowarn: Don't warn because of constantness

welcomeString
class ReplIO a

Known Instances

JLineConsole, ReaderWriterConsole

Member Functions

interpretSymReplIO a ⇒ a → GlobalSymbolReplEnvIO ()
readlineReplIO a ⇒ a → StringIO (Maybe String)
writeReplIO a ⇒ a → StringIO ()
writelnReplIO a ⇒ a → StringIO ()
data ConsoleReader = native jline.console.ConsoleReader

Member Functions

flushMutableIO ConsoleReaderIO ()
native flush  throws IOException
new()STMutable RealWorld ConsoleReader
         throws IOException
     | StringMutableIO InputStreamMutableIO OutputStreamMaybe TerminalStringSTMutable RealWorld ConsoleReader
         throws IOException
native new
newα()STMutable RealWorld ConsoleReader
native new  throws IOException  overloads new
newβStringMutableIO InputStreamMutableIO OutputStreamMaybe TerminalStringSTMutable RealWorld ConsoleReader
native new  throws IOException  overloads new
printMutableIO ConsoleReaderCharSequenceIO ()
native print  throws IOException
printlnMutableIO ConsoleReaderCharSequenceIO ()
             throws IOException
         | MutableIO ConsoleReaderIO ()
             throws IOException
native println
printlnαMutableIO ConsoleReaderCharSequenceIO ()
native println  throws IOException  overloads println
printlnβMutableIO ConsoleReaderIO ()
native println  throws IOException  overloads println
readLineMutableIO ConsoleReaderStringIO (Maybe String)
              throws IOException
          | MutableIO ConsoleReaderIO (Maybe String)
              throws IOException
native readLine
readLineαMutableIO ConsoleReaderStringIO (Maybe String)
native readLine  throws IOException  overloads readLine
readLineβMutableIO ConsoleReaderIO (Maybe String)
native readLine  throws IOException  overloads readLine
setExpandEventsMutableIO ConsoleReaderBoolIO ()
native setExpandEvents
setPromptMutableIO ConsoleReaderStringIO ()
native setPrompt
data Terminal = native jline.Terminal
data JLineConsole

Constructors

JLineConsole {console ∷ MutableIO ConsoleReader}

Member Functions

consoleJLineConsoleMutableIO ConsoleReader

access field console

data ReaderWriterConsole

Constructors

ReaderWriterConsole {input ∷ MutableIO BufferedReader, output ∷ MutableIO PrintWriter}

Member Functions

inputReaderWriterConsoleMutableIO BufferedReader

access field input

outputReaderWriterConsoleMutableIO PrintWriter

access field output

readResourceAsStringStringIO String
getResourceAsStreamMutableIO ClassLoaderStringSTMutable RealWorld InputStream
native getResourceAsStream
containsStrStringStringBool
pure native contains
launchBrowserStringStringIO ()
native frege.repl.nativedeps.Browser.show
encodeURIComponentStringString
pure native frege.repl.FregeRepl.encodeURIComponent
warmupIO ()
mainIO ()

Instances

instance Eq Command

Member Functions

!=CommandCommandBool
infix  7

inherited from Eq.!=

==CommandCommandBool
infix  7

Function generated for derived instance.

hashCodeCommandInt

Function generated for derived instance.

instance MonadIO Repl

Member Functions

liftIOIO α → Repl α
instance Monad Repl

Member Functions

*>Repl α → Repl β → Repl β
infixl  4

inherited from Applicative.*>

<*Repl α → Repl β → Repl α
infixl  4

inherited from Applicative.<*

<*>Repl (α→β) → Repl α → Repl β
infixl  4

inherited from Monad.<*>

>>Repl αRepl β → Repl β
infixl  3

inherited from Monad.>>

>>=Repl α → (α → Repl β) → Repl β
infixl  3
fmap ∷ (α → β) → Repl αRepl β
infixl  4

inherited from Monad.fmap

joinRepl (Repl α)Repl α

inherited from Monad.join

pure ∷ α → Repl α
instance ReplIO JLineConsole

Member Functions

interpretSymJLineConsoleGlobalSymbolReplEnvIO ()
readlineJLineConsoleStringIO (Maybe String)
writeJLineConsoleStringIO ()
writelnJLineConsoleStringIO ()
instance ReplIO ReaderWriterConsole

Member Functions

interpretSymReaderWriterConsoleGlobalSymbolReplEnvIO ()
readlineReaderWriterConsoleStringIO (Maybe String)
writeReaderWriterConsoleStringIO ()
writelnReaderWriterConsoleStringIO ()
instance Show Command

Member Functions

displayCommandString

inherited from Show.display

showCommandString

Function generated for derived instance.

showCharsCommand → [Char]

inherited from Show.showChars

showList[Command]StringString

inherited from Show.showList

showsPrecIntCommandStringString

inherited from Show.showsPrec

showsubCommandString

Function generated for derived instance.

Functions and Values by Type

(ReplEnvReplEnv) → Repl ()

Repl.modify

MutableIO BufferedReaderMutableIO PrintWriterReaderWriterConsole

ReaderWriterConsole.ReaderWriterConsole

MutableIO InputStreamSTMutable RealWorld Scanner

scannerFromInputStream

MutableIO ClassLoaderStringSTMutable RealWorld InputStream

getResourceAsStream

MutableIO ConsoleReaderStringIO (Maybe String)

ConsoleReader.readLineα

MutableIO ConsoleReaderStringIO ()

ConsoleReader.setPrompt

MutableIO ConsoleReaderCharSequenceIO ()

ConsoleReader.print, ConsoleReader.printlnα

MutableIO ConsoleReaderBoolIO ()

ConsoleReader.setExpandEvents

MutableIO ConsoleReaderIO (Maybe String)

ConsoleReader.readLineβ

MutableIO ConsoleReaderIO ()

ConsoleReader.printlnβ, ConsoleReader.flush

MutableIO ConsoleReaderJLineConsole

JLineConsole.JLineConsole

Maybe StringMaybe StringReplOptsInterpreterConfigIntMutableIO InterpreterClassLoaderReplEnv

ReplEnv.ReplEnv

StringMutableIO InputStreamMutableIO OutputStreamMaybe TerminalStringSTMutable RealWorld ConsoleReader

ConsoleReader.newβ

StringStringStringString

replaceAll

StringStringIntReplOpts

ReplOpts.ReplOpts

StringStringIO ()

launchBrowser

StringStringBool

containsStr

StringStringInt

indexOf

StringStringCommand

Command.LoadExternal

StringIntIntString

substringβ

StringIntString

substringα

String → (String | Command)

Command.parseCommand, Command.parse

StringIO (Message | Command)

slurp

StringIO String

fileContents, readResourceAsString

StringIO ()

javaSourceGUI

StringString

encodeURIComponent, hoogle

StringRepl ReplResult

java, parseAndSetCompilerFlag

StringBool

isEmpty

StringCommand

Command.Type, Command.Unset, Command.Set, Command.Load, Command.HelpDoc, Command.BrowseModule, Command.Eval

StringReplResult

ReplResult.JavaSource

[(String, String)] → [String]

help, renderCmdHelp

[Message] → ReplResult

ReplResult.ReplInfo

[Command] → StringString

Show_Command.showList

FlagRepl ReplResult

clearCompilerFlag, setCompilerFlag

Global → [Symbol] → ReplResult

symbolsToReplInfo

SourceInfoGlobal → [Message] → ReplResult

ReplResult.CodeInfo

URLIO String

urlContents

()STMutable RealWorld ConsoleReader

ConsoleReader.newα

IntCommandStringString

Show_Command.showsPrec

ObjectString

toString

CommandCommandBool

Eq_Command.!=, Eq_Command.==

CommandString

Show_Command.showsub, Show_Command.display, Show_Command.show

Command → [Char]

Show_Command.showChars

CommandRepl ReplResult

eval

CommandInt

Eq_Command.hashCode

JLineConsole → (MutableIO ConsoleReaderMutableIO ConsoleReader) → JLineConsole

JLineConsole.chg$console

JLineConsoleMutableIO ConsoleReaderJLineConsole

JLineConsole.upd$console

JLineConsoleStringIO (Maybe String)

ReplIO_JLineConsole.readline

JLineConsoleStringIO ()

ReplIO_JLineConsole.write, ReplIO_JLineConsole.writeln

JLineConsoleGlobalSymbolReplEnvIO ()

ReplIO_JLineConsole.interpretSym

JLineConsoleMutableIO ConsoleReader

JLineConsole.console

ReaderWriterConsole → (MutableIO BufferedReaderMutableIO BufferedReader) → ReaderWriterConsole

ReaderWriterConsole.chg$input

ReaderWriterConsole → (MutableIO PrintWriterMutableIO PrintWriter) → ReaderWriterConsole

ReaderWriterConsole.chg$output

ReaderWriterConsoleMutableIO BufferedReaderReaderWriterConsole

ReaderWriterConsole.upd$input

ReaderWriterConsoleMutableIO PrintWriterReaderWriterConsole

ReaderWriterConsole.upd$output

ReaderWriterConsoleStringIO (Maybe String)

ReplIO_ReaderWriterConsole.readline

ReaderWriterConsoleStringIO ()

ReplIO_ReaderWriterConsole.write, ReplIO_ReaderWriterConsole.writeln

ReaderWriterConsoleGlobalSymbolReplEnvIO ()

ReplIO_ReaderWriterConsole.interpretSym

ReaderWriterConsoleMutableIO BufferedReader

ReaderWriterConsole.input

ReaderWriterConsoleMutableIO PrintWriter

ReaderWriterConsole.output

ReplEnv → (MutableIO InterpreterClassLoaderMutableIO InterpreterClassLoader) → ReplEnv

ReplEnv.chg$state

ReplEnv → (Maybe StringMaybe String) → ReplEnv

ReplEnv.chg$lastJavaGenSrc, ReplEnv.chg$lastExternalScript

ReplEnv → (InterpreterConfigInterpreterConfig) → ReplEnv

ReplEnv.chg$config

ReplEnv → (IntInt) → ReplEnv

ReplEnv.chg$lineStart

ReplEnv → (ReplOptsReplOpts) → ReplEnv

ReplEnv.chg$opts

ReplEnvMutableIO InterpreterClassLoaderReplEnv

ReplEnv.upd$state

ReplEnvMaybe StringReplEnv

ReplEnv.upd$lastExternalScript, ReplEnv.upd$lastJavaGenSrc

ReplEnvInterpreterConfigReplEnv

ReplEnv.upd$config

ReplEnvIntReplEnv

ReplEnv.upd$lineStart

ReplEnvReplOptsReplEnv

ReplEnv.upd$opts

ReplEnvMutableIO InterpreterClassLoader

ReplEnv.state

ReplEnvMaybe String

ReplEnv.lastJavaGenSrc, ReplEnv.lastExternalScript

ReplEnvRepl ()

Repl.put

ReplEnvInterpreterConfig

ReplEnv.config

ReplEnvInt

ReplEnv.lineStart

ReplEnvReplOpts

ReplEnv.opts

ReplOpts → (StringString) → ReplOpts

ReplOpts.chg$prompt, ReplOpts.chg$multilinePrompt

ReplOpts → (IntInt) → ReplOpts

ReplOpts.chg$showLimit

ReplOptsStringReplOpts

ReplOpts.upd$multilinePrompt, ReplOpts.upd$prompt

ReplOptsIntReplOpts

ReplOpts.upd$showLimit

ReplOptsString

ReplOpts.prompt, ReplOpts.multilinePrompt

ReplOptsInt

ReplOpts.showLimit

ReplResult → ([Message]→[Message]) → ReplResult

ReplResult.chg$messages

ReplResult → (GlobalGlobal) → ReplResult

ReplResult.chg$compilerState

ReplResult → (SourceInfoSourceInfo) → ReplResult

ReplResult.chg$sourceRepr

ReplResult → [Message] → ReplResult

ReplResult.upd$messages

ReplResultGlobalReplResult

ReplResult.upd$compilerState

ReplResultSourceInfoReplResult

ReplResult.upd$sourceRepr

ReplResult → [Message]

ReplResult.messages

ReplResultGlobal

ReplResult.compilerState

ReplResultSourceInfo

ReplResult.sourceRepr

ReplResultBool

ReplResult.has$sourceRepr, ReplResult.has$compilerState, ReplResult.has$messages

IO ()

main, warmup

IO ReplEnv

ReplEnv.initialState

MutableIO InputStream

sysin

String

javaVersion, vmName, vmVendor, welcome

[(String, String)]

cmdHelp

Repl ()

ReplEnv.reset

Repl ReplEnv

Repl.get

Command

Command.Version, Command.Reset, Command.Skip, Command.Quit, Command.Java, Command.Help, Command.DefMulti, Command.Browse, Command.History, Command.Reload

ReplOpts

ReplOpts.initialState

StateT ReplEnv IO a → Repl a

Repl.Repl

IO α → Repl α

MonadIO_Repl.liftIO

Repl (Repl α) → Repl α

Monad_Repl.join

Repl α → ReplEnvIO (α, ReplEnv)

Repl.run

Repl α → StateT ReplEnv IO α

Repl.un

Repl α → IO (α, ReplEnv)

Repl.runWithDefault

URLST s URI

toURI

a → Object

asObject

α → Repl α

Monad_Repl.pure

α → Bool

JLineConsole.has$console, ReaderWriterConsole.has$input, ReaderWriterConsole.has$output, Repl.has$un, ReplEnv.has$state, ReplEnv.has$lineStart, ReplEnv.has$lastExternalScript, ReplEnv.has$lastJavaGenSrc, ReplEnv.has$config, ReplEnv.has$opts, ReplOpts.has$showLimit, ReplOpts.has$multilinePrompt, ReplOpts.has$prompt

ReplIO a ⇒ a → StringIO (Maybe String)

ReplIO.readline

ReplIO a ⇒ a → StringIO String

readMultiline

ReplIO a ⇒ a → StringIO ()

ReplIO.write, ReplIO.writeln

ReplIO a ⇒ a → [Message] → IO ()

printMessages

ReplIO a ⇒ a → GlobalSymbolReplEnvIO ()

ReplIO.interpretSym

ReplIO a ⇒ a → GlobalSymbolIO ()

printSymbolType

ReplIO a ⇒ a → CommandReplResultReplEnvIO ()

loop, print

ReplIO a ⇒ a → ReplEnvIO ()

repl

ReplIO a ⇒ a → ReplEnvIO Command

read

ω

substring, ConsoleReader.println, ConsoleReader.new, ConsoleReader.readLine

(α → β) → Repl α → Repl β

Monad_Repl.fmap

Repl (α→β) → Repl α → Repl β

Monad_Repl.<*>

Repl α → (α → Repl β) → Repl β

Monad_Repl.>>=

Repl α → StateT ReplEnv IO β → Repl β

Repl.upd$un

Repl α → (StateT ReplEnv IO α→StateT ReplEnv IO β) → Repl β

Repl.chg$un

Repl α → Repl β → Repl α

Monad_Repl.<*

Repl α → Repl β → Repl β

Monad_Repl.>>, Monad_Repl.*>

Valid HTML 4.01 Strict