Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
dfccbc69
Commit
dfccbc69
authored
Jan 29, 2020
by
Vaibhav Sagar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for :sprint
parent
c1395da6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
Evaluate.hs
src/IHaskell/Eval/Evaluate.hs
+1
-0
Eval.hs
src/tests/IHaskell/Test/Eval.hs
+4
-0
acceptance.nbconvert.in.ipynb
test/acceptance.nbconvert.in.ipynb
+2
-1
No files found.
src/IHaskell/Eval/Evaluate.hs
View file @
dfccbc69
...
...
@@ -741,6 +741,7 @@ evalCommand _ (Directive GetHelp _) state = do
,
" :option <opt> - Set an option."
,
" :option no-<opt> - Unset an option."
,
" :?, :help - Show this help text."
,
" :sprint <value> - Print a value without forcing evaluation."
,
""
,
"Any prefix of the commands will also suffice, e.g. use :ty for :type."
,
""
...
...
src/tests/IHaskell/Test/Eval.hs
View file @
dfccbc69
...
...
@@ -169,6 +169,10 @@ testEval =
#
endif
":k Maybe"
`
becomes
`
[
"Maybe :: * -> *"
]
":in String"
`
pages
`
[
"type String = [Char]
\t
-- Defined in
\8216
GHC.Base
\8217
"
]
[
hereLit
|
let x = ['a'..'z']
:sprint x
|]
`
becomes
`
[
"x = _"
]
it
"captures stderr"
$
do
[
hereLit
|
...
...
test/acceptance.nbconvert.in.ipynb
View file @
dfccbc69
...
...
@@ -964,11 +964,12 @@
" :type <expression> - Print expression type.\n",
" :info <name> - Print all info for a name.\n",
" :hoogle <query> - Search for a query on Hoogle.\n",
" :doc <ident> - Get documentation for an identifier via Ho
go
le.\n",
" :doc <ident> - Get documentation for an identifier via Ho
og
le.\n",
" :set -XFlag -Wall - Set an option (like ghci).\n",
" :option <opt> - Set an option.\n",
" :option no-<opt> - Unset an option.\n",
" :?, :help - Show this help text.\n",
" :sprint <value> - Print a value without forcing evaluation.\n",
"\n",
"Any prefix of the commands will also suffice, e.g. use :ty for :type.\n",
"\n",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment