ReadableABC: False
ReuseUniqueNodes: True
Fusion: False
+ Module
+ Name: StdMaybe
+ Dir: {Application}/lib/iTasks-SDK/Dependencies/clean-platform/src/libraries/OS-Independent/Deprecated/StdLib
+ Compiler
+ NeverMemoryProfile: False
+ NeverTimeProfile: False
+ StrictnessAnalysis: True
+ ListTypes: StrictExportTypes
+ ListAttributes: True
+ Warnings: True
+ Verbose: True
+ ReadableABC: False
+ ReuseUniqueNodes: True
+ Fusion: False
Module
Name: System.OS
Dir: {Application}/lib/iTasks-SDK/Dependencies/clean-platform/src/libraries/OS-Mac
ReadableABC: False
ReuseUniqueNodes: True
Fusion: False
+ Module
+ Name: GenPrint
+ Dir: {Application}/lib/iTasks-SDK/Patches/Generics
+ Compiler
+ NeverMemoryProfile: False
+ NeverTimeProfile: False
+ StrictnessAnalysis: True
+ ListTypes: StrictExportTypes
+ ListAttributes: True
+ Warnings: True
+ Verbose: True
+ ReadableABC: False
+ ReuseUniqueNodes: True
+ Fusion: False
Module
Name: StdGeneric
Dir: {Application}/lib/iTasks-SDK/Patches/StdEnv
import Data.Func
from Data.List import intercalate, replicate, instance Functor []
from Text import class Text(concat), instance Text String
+import GenPrint
import yard
import lex
trans1 :: TokenValue a -> Parser Token a
trans1 t r = trans2 t $ const r
+derive gPrint TokenValue
satTok :: TokenValue -> Parser Token Token
-satTok t = top >>= \tok=:(pos, tv) -> if (t === tok) (return tok) (fail <?> ("Token", pos))
+satTok t = top >>= \tok=:(pos, tv) -> if (t === tok) (return tok) (fail <?> (printToString t, pos))
parseSepList :: TokenValue (Parser Token a) -> Parser Token [a]
parseSepList sep p =
import StdClass
import StdString
import StdList
+import StdInt
+from Data.List import intersperse
+from Text import instance Text String, class Text(concat)
import Data.Functor
import Data.Either
import Control.Monad
instance toString Error where
toString ParseError = "General parse error"
toString (LexError e) = "Lexer error: " +++ e
+ toString (Expected ts pos) = "Expected " +++ (concat $ intersperse ", " ts)
+ +++ " at position " +++ (toString pos)
instance + Error where
(+) (Expected as _) (Expected bs p) = Expected (as++bs) p