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
3a4e4e29
Commit
3a4e4e29
authored
Jan 07, 2015
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No longer need to import TH to use it
parent
021e3bf0
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
596 deletions
+3
-596
.gitignore
.gitignore
+1
-0
Test.ipynb
notebooks/Test.ipynb
+0
-595
Evaluate.hs
src/IHaskell/Eval/Evaluate.hs
+2
-1
No files found.
.gitignore
View file @
3a4e4e29
*.hi
notebooks/Test.ipynb
*.o
dist
IHaskell/GHC
...
...
notebooks/Test.ipynb
deleted
100644 → 0
View file @
021e3bf0
This diff is collapsed.
Click to expand it.
src/IHaskell/Eval/Evaluate.hs
View file @
3a4e4e29
...
...
@@ -117,6 +117,7 @@ globalImports =
,
"import qualified IHaskell.IPython.Stdin"
,
"import qualified System.Posix.IO as IHaskellIO"
,
"import qualified System.IO as IHaskellSysIO"
,
"import qualified Language.Haskell.TH as IHaskellTH"
]
-- | Run an interpreting action. This is effectively runGhc with
...
...
@@ -706,7 +707,7 @@ evalCommand output (Expression expr) state = do
isWidget
<-
attempt
$
exprType
widgetExpr
-- Check if this is a template haskell declaration
let
declExpr
=
printf
"((id ::
DecsQ ->
DecsQ) (%s))"
expr
::
String
let
declExpr
=
printf
"((id ::
IHaskellTH.DecsQ -> IHaskellTH.
DecsQ) (%s))"
expr
::
String
isTHDeclaration
<-
attempt
$
exprType
declExpr
write
$
"Can Display: "
++
show
canRunDisplay
...
...
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