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
e09ced99
Commit
e09ced99
authored
Jan 17, 2014
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes, new ipython commit hash
parent
37c2b993
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
22 deletions
+14
-22
IHaskell.ipynb
demo/IHaskell.ipynb
+8
-8
ihaskell.cabal
ihaskell.cabal
+1
-1
Evaluate.hs
src/IHaskell/Eval/Evaluate.hs
+3
-11
Hoogle.hs
src/IHaskell/Eval/Hoogle.hs
+1
-1
IPython.hs
src/IHaskell/IPython.hs
+1
-1
No files found.
demo/IHaskell.ipynb
View file @
e09ced99
...
...
@@ -368,7 +368,7 @@
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 1
2
"prompt_number": 1
},
{
"cell_type": "markdown",
...
...
@@ -398,7 +398,7 @@
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number":
13
"prompt_number":
2
},
{
"cell_type": "markdown",
...
...
@@ -440,7 +440,7 @@
"output_type": "display_data"
}
],
"prompt_number":
14
"prompt_number":
6
},
{
"cell_type": "markdown",
...
...
@@ -507,7 +507,7 @@
]
}
],
"prompt_number":
15
"prompt_number":
7
},
{
"cell_type": "markdown",
...
...
@@ -573,7 +573,7 @@
]
}
],
"prompt_number":
16
"prompt_number":
8
},
{
"cell_type": "markdown",
...
...
@@ -731,7 +731,7 @@
]
}
],
"prompt_number":
2
"prompt_number":
18
},
{
"cell_type": "markdown",
...
...
@@ -1184,7 +1184,7 @@
"output_type": "display_data"
}
],
"prompt_number":
3
"prompt_number":
25
},
{
"cell_type": "markdown",
...
...
@@ -1216,7 +1216,7 @@
"output_type": "display_data"
}
],
"prompt_number":
4
"prompt_number":
26
},
{
"cell_type": "markdown",
...
...
IH
askell.cabal
→
ih
askell.cabal
View file @
e09ced99
...
...
@@ -7,7 +7,7 @@ name: ihaskell
-- PVP summary: +-+------- breaking API changes
-- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change
version: 0.3.0.
0
version: 0.3.0.
1
-- A short (one-line) description of the package.
synopsis: A Haskell backend kernel for the IPython project.
...
...
src/IHaskell/Eval/Evaluate.hs
View file @
e09ced99
...
...
@@ -1044,11 +1044,12 @@ formatErrorWithClass :: String -> ErrMsg -> String
formatErrorWithClass
cls
=
printf
"<span class='%s'>%s</span>"
cls
.
replace
"
\n
"
"<br/>"
.
fixStdinError
.
replace
useDashV
""
.
fixDollarSigns
.
rstrip
.
typeCleaner
where
fixDollarSigns
str
=
traceShowId
(
replace
"$"
"<span>$</span>"
str
)
useDashV
=
"
\n
Use -v to see a list of the files searched for."
isShowError
err
=
startswith
"No instance for (Show"
err
&&
...
...
@@ -1066,16 +1067,7 @@ formatType :: String -> Display
formatType
typeStr
=
Display
[
plain
typeStr
,
html
$
formatGetType
typeStr
]
displayError
::
ErrMsg
->
Display
displayError
msg
=
Display
[
plain
.
fixStdinError
.
typeCleaner
$
msg
,
html
$
formatError
msg
]
fixStdinError
::
ErrMsg
->
ErrMsg
fixStdinError
err
=
if
isStdinErr
err
then
"<stdin> is not available in IHaskell. Use special `inputLine` instead of `getLine`."
else
err
where
isStdinErr
err
=
startswith
"<stdin>"
err
&&
"illegal operation (handle is closed)"
`
isInfixOf
`
err
displayError
msg
=
Display
[
plain
.
typeCleaner
$
msg
,
html
$
formatError
msg
]
mono
::
String
->
String
mono
=
printf
"<span class='mono'>%s</span>"
src/IHaskell/Eval/Hoogle.hs
View file @
e09ced99
...
...
@@ -150,7 +150,7 @@ renderSelf string loc
span
"hoogle-module"
(
link
loc
$
extractModule
string
)
++
packageSub
package
|
otherwise
|
otherwise
=
let
[
name
,
args
]
=
split
"::"
string
package
=
extractPackageName
loc
modname
=
extractModuleName
loc
in
...
...
src/IHaskell/IPython.hs
View file @
e09ced99
...
...
@@ -40,7 +40,7 @@ data WhichIPython
-- | Which commit of IPython we are on.
ipythonCommit
::
Text
ipythonCommit
=
"
9c922f54af799704f4000aeee94ec7c74cada194
"
ipythonCommit
=
"
12247a8f4feffe16fb0bbdc0a18e7a1f46cd2ba1
"
-- | The IPython profile name.
ipythonProfile
::
String
...
...
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