This repository was archived by the owner on Apr 1, 2025. It is now read-only.
File tree 1 file changed +4
-12
lines changed
1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 2
2
:set -package pretty-show -package hscolour
3
3
4
4
-- See docs/💡ProTip!.md
5
- :undef pretty
6
- :def pretty \ _ -> return ":set -interactive-print Semantic.Util.Pretty.prettyShow"
7
-
8
- -- See docs/💡ProTip!.md
9
- :undef no-pretty
10
- :def no-pretty \_ -> return ":set -interactive-print System.IO.print"
11
-
12
- -- See docs/💡ProTip!.md
13
- :undef r
14
- :def r \_ -> return (unlines [":reload", ":pretty"])
5
+ :def! pretty \ _ -> return ":set -interactive-print Semantic.Util.Pretty.prettyShow"
6
+ :def! no-pretty \_ -> return ":set -interactive-print System.IO.print"
7
+ :def! r \_ -> return (unlines [":reload", ":pretty"])
15
8
16
9
-- See docs/💡ProTip!.md for documentation & examples.
17
10
:{
@@ -29,8 +22,7 @@ assignmentExample lang = case lang of
29
22
_ -> mk "" ""
30
23
where mk fileExtension parser = putStrLn ("example: fmap (() <$) . runTask . parse " ++ parser ++ "Parser =<< Semantic.Util.blob \"example." ++ fileExtension ++ "\"") >> return ("import Parsing.Parser\nimport Semantic.Task\nimport Semantic.Util")
31
24
:}
32
- :undef assignment
33
- :def assignment assignmentExample
25
+ :def! assignment assignmentExample
34
26
35
27
-- Enable breaking on errors for code written in the repl.
36
28
:seti -fbreak-on-error
You can’t perform that action at this time.
0 commit comments