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
f002190f
Commit
f002190f
authored
May 22, 2015
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #497 from sumitsahrawat/fp-conversions
Temporary fix for classy-prelude
parents
49a77f63
c304a194
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
19 additions
and
19 deletions
+19
-19
ihaskell-aeson.cabal
ihaskell-display/ihaskell-aeson/ihaskell-aeson.cabal
+1
-1
ihaskell-basic.cabal
ihaskell-display/ihaskell-basic/ihaskell-basic.cabal
+1
-1
ihaskell-blaze.cabal
ihaskell-display/ihaskell-blaze/ihaskell-blaze.cabal
+1
-1
Charts.hs
ihaskell-display/ihaskell-charts/IHaskell/Display/Charts.hs
+1
-1
ihaskell-charts.cabal
ihaskell-display/ihaskell-charts/ihaskell-charts.cabal
+1
-1
Diagrams.hs
...ll-display/ihaskell-diagrams/IHaskell/Display/Diagrams.hs
+1
-1
Animation.hs
.../ihaskell-diagrams/IHaskell/Display/Diagrams/Animation.hs
+1
-1
ihaskell-diagrams.cabal
ihaskell-display/ihaskell-diagrams/ihaskell-diagrams.cabal
+1
-1
Juicypixels.hs
...play/ihaskell-juicypixels/IHaskell/Display/Juicypixels.hs
+1
-1
ihaskell-juicypixels.cabal
...l-display/ihaskell-juicypixels/ihaskell-juicypixels.cabal
+1
-1
ihaskell-magic.cabal
ihaskell-display/ihaskell-magic/ihaskell-magic.cabal
+1
-1
ihaskell-parsec.cabal
ihaskell-display/ihaskell-parsec/ihaskell-parsec.cabal
+1
-1
Plot.hs
ihaskell-display/ihaskell-plot/IHaskell/Display/Plot.hs
+1
-1
ihaskell-plot.cabal
ihaskell-display/ihaskell-plot/ihaskell-plot.cabal
+1
-1
ihaskell-widgets.cabal
ihaskell-display/ihaskell-widgets/ihaskell-widgets.cabal
+1
-1
Evaluate.hs
src/IHaskell/Eval/Evaluate.hs
+2
-2
Main.hs
src/Main.hs
+2
-2
No files found.
ihaskell-display/ihaskell-aeson/ihaskell-aeson.cabal
View file @
f002190f
...
...
@@ -59,7 +59,7 @@ library
-- Other library packages from which modules are imported.
build-depends: base >=4.6 && <4.9,
here,
classy-prelude >=0.
7
,
classy-prelude >=0.
10.5 && <0.11
,
aeson >= 0.7,
aeson-pretty >= 0.7,
chunked-data >=0.1,
...
...
ihaskell-display/ihaskell-basic/ihaskell-basic.cabal
View file @
f002190f
...
...
@@ -62,7 +62,7 @@ library
-- Other library packages from which modules are imported.
build-depends: base >=4.6 && <4.9,
classy-prelude >=0.
6
,
classy-prelude >=0.
10.5 && <0.11
,
ihaskell >= 0.5
-- Directories containing source files.
...
...
ihaskell-display/ihaskell-blaze/ihaskell-blaze.cabal
View file @
f002190f
...
...
@@ -62,7 +62,7 @@ library
-- Other library packages from which modules are imported.
build-depends: base >=4.6 && <4.9,
classy-prelude >=0.
6
,
classy-prelude >=0.
10.5 && <0.11
,
blaze-html >= 0.6,
blaze-markup >= 0.5,
ihaskell >= 0.5
...
...
ihaskell-display/ihaskell-charts/IHaskell/Display/Charts.hs
View file @
f002190f
...
...
@@ -39,7 +39,7 @@ chartData renderable format = do
mkFile
opts
filename
renderable
-- Convert to base64.
imgData
<-
readFile
filename
imgData
<-
readFile
$
fpFromString
filename
return
$
case
format
of
PNG
->
png
width
height
$
base64
imgData
...
...
ihaskell-display/ihaskell-charts/ihaskell-charts.cabal
View file @
f002190f
...
...
@@ -59,7 +59,7 @@ library
-- Other library packages from which modules are imported.
build-depends: base >=4.6 && <4.9,
classy-prelude >=0.10.5,
classy-prelude >=0.10.5
&& <0.11
,
bytestring,
data-default-class,
directory,
...
...
ihaskell-display/ihaskell-diagrams/IHaskell/Display/Diagrams.hs
View file @
f002190f
...
...
@@ -36,7 +36,7 @@ diagramData renderable format = do
renderCairo
filename
(
mkSizeSpec2D
(
Just
imgWidth
)
(
Just
imgHeight
))
renderable
-- Convert to base64.
imgData
<-
readFile
filename
imgData
<-
readFile
$
fpFromString
filename
let
value
=
case
format
of
PNG
->
png
(
floor
imgWidth
)
(
floor
imgHeight
)
$
base64
imgData
...
...
ihaskell-display/ihaskell-diagrams/IHaskell/Display/Diagrams/Animation.hs
View file @
f002190f
...
...
@@ -47,7 +47,7 @@ animationData renderable = do
mainRender
(
diagOpts
,
gifOpts
)
frameSet
-- Convert to ascii represented base64 encoding
imgData
<-
readFile
filename
imgData
<-
readFile
$
fpFromString
filename
return
.
unpack
.
base64
$
imgData
-- Rendering hint.
...
...
ihaskell-display/ihaskell-diagrams/ihaskell-diagrams.cabal
View file @
f002190f
...
...
@@ -59,7 +59,7 @@ library
-- Other library packages from which modules are imported.
build-depends: base >=4.6 && <4.9,
classy-prelude >=0.10.5,
classy-prelude >=0.10.5
&& <0.11
,
bytestring,
directory,
-- Use diagrams wrapper package to ensure all same versions of subpackages
...
...
ihaskell-display/ihaskell-juicypixels/IHaskell/Display/Juicypixels.hs
View file @
f002190f
...
...
@@ -60,7 +60,7 @@ displayImageAsJpg renderable = do
-- Write the image
saveJpgImage
95
filename
renderable
-- Convert to base64.
imgData
<-
readFile
filename
imgData
<-
readFile
$
fpFromString
filename
return
$
Display
[
jpg
(
imWidth
renderable
)
(
imHeight
renderable
)
$
base64
imgData
]
-- The type DynamicImage does not have a function to extract width and height
...
...
ihaskell-display/ihaskell-juicypixels/ihaskell-juicypixels.cabal
View file @
f002190f
...
...
@@ -63,7 +63,7 @@ library
-- Other library packages from which modules are imported.
build-depends: base >=4.6 && <4.9,
classy-prelude >=0.10.5,
classy-prelude >=0.10.5
&& <0.11
,
bytestring,
directory,
JuicyPixels >= 3.1.3,
...
...
ihaskell-display/ihaskell-magic/ihaskell-magic.cabal
View file @
f002190f
...
...
@@ -62,7 +62,7 @@ library
-- Other library packages from which modules are imported.
build-depends: base >=4.6 && <4.9,
classy-prelude >=0.
6
,
classy-prelude >=0.
10.5 && <0.11
,
magic >= 1.0.8,
text,
bytestring,
...
...
ihaskell-display/ihaskell-parsec/ihaskell-parsec.cabal
View file @
f002190f
...
...
@@ -61,7 +61,7 @@ library
build-depends: base >=4.6 && <4.9,
aeson >=0.7 && <0.9,
unordered-containers,
classy-prelude,
classy-prelude
>=0.10.5 && <0.11
,
random >= 1,
parsec,
here,
...
...
ihaskell-display/ihaskell-plot/IHaskell/Display/Plot.hs
View file @
f002190f
...
...
@@ -31,7 +31,7 @@ figureData figure format = do
writeFigure
format
fname
(
w
,
h
)
figure
-- Read back, and convert to base64.
imgData
<-
readFile
fname
imgData
<-
readFile
$
fpFromString
fname
let
value
=
case
format
of
PNG
->
png
w
h
$
base64
imgData
...
...
ihaskell-display/ihaskell-plot/ihaskell-plot.cabal
View file @
f002190f
...
...
@@ -59,7 +59,7 @@ library
-- Other library packages from which modules are imported.
build-depends: base >=4.6 && <4.9,
classy-prelude >= 0.10.5,
classy-prelude >= 0.10.5
&& <0.11
,
plot,
bytestring,
ihaskell >= 0.6.2
...
...
ihaskell-display/ihaskell-widgets/ihaskell-widgets.cabal
View file @
f002190f
...
...
@@ -60,7 +60,7 @@ library
-- Other library packages from which modules are imported.
build-depends: base >=4.6 && <4.9,
aeson >=0.7 && <0.9,
classy-prelude,
classy-prelude
>=0.10.5 && <0.11
,
here,
ihaskell >= 0.4
...
...
src/IHaskell/Eval/Evaluate.hs
View file @
f002190f
...
...
@@ -403,7 +403,7 @@ evalCommand _ (Module contents) state = wrapExecution state $ do
filename
=
last
namePieces
++
".hs"
liftIO
$
do
createDirectoryIfMissing
True
directory
writeFile
(
directory
++
filename
)
contents
writeFile
(
fpFromString
$
directory
++
filename
)
contents
-- Clear old modules of this name
let
modName
=
intercalate
"."
namePieces
...
...
@@ -565,7 +565,7 @@ evalCommand _ (Directive LoadFile names) state = wrapExecution state $ do
let
filename
=
if
endswith
".hs"
name
then
name
else
name
++
".hs"
contents
<-
readFile
filename
contents
<-
readFile
$
fpFromString
filename
modName
<-
intercalate
"."
<$>
getModuleName
contents
doLoadModule
filename
modName
return
(
ManyDisplay
displays
)
...
...
src/Main.hs
View file @
f002190f
...
...
@@ -101,7 +101,7 @@ runKernel kernelOpts profileSrc = do
libdir
=
kernelSpecGhcLibdir
kernelOpts
-- Parse the profile file.
Just
profile
<-
liftM
decode
.
readFile
$
profileSrc
Just
profile
<-
liftM
decode
.
readFile
.
fpFromText
$
profileSrc
-- Necessary for `getLine` and their ilk to work.
dir
<-
getIHaskellDir
...
...
@@ -131,7 +131,7 @@ runKernel kernelOpts profileSrc = do
confFile
<-
liftIO
$
kernelSpecConfFile
kernelOpts
case
confFile
of
Just
filename
->
liftIO
(
readFile
filename
)
>>=
evaluator
Just
filename
->
liftIO
(
readFile
$
fpFromString
filename
)
>>=
evaluator
Nothing
->
return
()
forever
$
do
...
...
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