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
699e292b
Commit
699e292b
authored
May 17, 2014
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed `ipython-kernel`, merged back.
Separating packages not working so well.
parent
df62bd56
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
52 additions
and
87 deletions
+52
-87
ihaskell.cabal
ihaskell.cabal
+15
-7
LICENSE
ipython-kernel/LICENSE
+0
-20
Setup.hs
ipython-kernel/Setup.hs
+0
-2
ipython-kernel.cabal
ipython-kernel/ipython-kernel.cabal
+0
-37
Evaluate.hs
src/IHaskell/Eval/Evaluate.hs
+1
-1
Kernel.hs
src/IHaskell/IPython/Kernel.hs
+16
-0
Parser.hs
src/IHaskell/IPython/Message/Parser.hs
+2
-2
UUID.hs
src/IHaskell/IPython/Message/UUID.hs
+1
-1
Writer.hs
src/IHaskell/IPython/Message/Writer.hs
+2
-2
Stdin.hs
src/IHaskell/IPython/Stdin.hs
+4
-4
Types.hs
src/IHaskell/IPython/Types.hs
+2
-2
ZeroMQ.hs
src/IHaskell/IPython/ZeroMQ.hs
+4
-4
Types.hs
src/IHaskell/Types.hs
+1
-1
Main.hs
src/Main.hs
+4
-4
No files found.
ihaskell.cabal
View file @
699e292b
...
@@ -7,7 +7,7 @@ name: ihaskell
...
@@ -7,7 +7,7 @@ name: ihaskell
-- PVP summary: +-+------- breaking API changes
-- PVP summary: +-+------- breaking API changes
-- | | +----- non-breaking API additions
-- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change
-- | | | +--- code changes with no API change
version: 0.3.0.
4
version: 0.3.0.
5
-- A short (one-line) description of the package.
-- A short (one-line) description of the package.
synopsis: A Haskell backend kernel for the IPython project.
synopsis: A Haskell backend kernel for the IPython project.
...
@@ -53,8 +53,8 @@ library
...
@@ -53,8 +53,8 @@ library
default-language: Haskell2010
default-language: Haskell2010
ghc-options: -threaded
ghc-options: -threaded
build-depends:
build-depends:
base ==4.6.*,
aeson >=0.6 && < 0.8,
aeson >=0.6 && < 0.8,
base ==4.6.*,
base64-bytestring >=1.0,
base64-bytestring >=1.0,
bytestring >=0.10,
bytestring >=0.10,
cereal >=0.3,
cereal >=0.3,
...
@@ -65,15 +65,14 @@ library
...
@@ -65,15 +65,14 @@ library
filepath -any,
filepath -any,
ghc ==7.6.*,
ghc ==7.6.*,
ghc-parser >=0.1.1,
ghc-parser >=0.1.1,
ghci-lib >=0.1,
ghc-paths ==0.1.*,
ghc-paths ==0.1.*,
ghci-lib >=0.1,
haskeline -any,
haskeline -any,
here ==1.2.*,
here ==1.2.*,
hlint -any,
hlint -any,
hspec -any,
hspec -any,
HTTP -any,
HTTP -any,
HUnit -any,
HUnit -any,
ipython-kernel -any,
MissingH >=1.2,
MissingH >=1.2,
mtl >=2.1,
mtl >=2.1,
parsec -any,
parsec -any,
...
@@ -81,17 +80,19 @@ library
...
@@ -81,17 +80,19 @@ library
random >=1.0,
random >=1.0,
shelly ==1.5.*,
shelly ==1.5.*,
split >= 0.2,
split >= 0.2,
stm -any,
strict >=0.3,
strict >=0.3,
system-argv0 -any,
system-argv0 -any,
system-filepath -any,
system-filepath -any,
tar -any,
tar -any,
text >=0.11,
transformers -any,
transformers -any,
unix >= 2.6,
unix >= 2.6,
unordered-containers -any,
unordered-containers -any,
stm -any,
text -any,
utf8-string -any,
utf8-string -any,
vector -any
uuid >=1.3,
vector -any,
zeromq4-haskell >=0.1
exposed-modules: IHaskell.Display
exposed-modules: IHaskell.Display
IHaskell.Convert
IHaskell.Convert
...
@@ -110,6 +111,13 @@ library
...
@@ -110,6 +111,13 @@ library
IHaskell.Flags
IHaskell.Flags
IHaskell.Types
IHaskell.Types
IHaskell.BrokenPackages
IHaskell.BrokenPackages
IHaskell.IPython.Kernel
IHaskell.IPython.Types
IHaskell.IPython.ZeroMQ
IHaskell.IPython.Stdin
IHaskell.IPython.Message.Writer
IHaskell.IPython.Message.Parser
IHaskell.IPython.Message.UUID
Paths_ihaskell
Paths_ihaskell
-- other-modules:
-- other-modules:
-- Paths_ihaskell
-- Paths_ihaskell
...
...
ipython-kernel/LICENSE
deleted
100644 → 0
View file @
df62bd56
The MIT License (MIT)
Copyright (c) 2013 Andrew Gibiansky
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ipython-kernel/Setup.hs
deleted
100644 → 0
View file @
df62bd56
import
Distribution.Simple
main
=
defaultMain
ipython-kernel/ipython-kernel.cabal
deleted
100644 → 0
View file @
df62bd56
name: ipython-kernel
version: 0.1.0.0
synopsis: A library for creating kernels for IPython frontends
description: ipython-kernel is a library for communicating with frontends for the interactive IPython framework. It is used extensively in IHaskell, the interactive Haskell environment.
homepage: http://github.com/gibiansky/IHaskell
license: MIT
license-file: LICENSE
author: Andrew Gibiansky
maintainer: andrew.gibiansky@gmail.com
category: Development
build-type: Simple
cabal-version: >=1.16
library
exposed-modules: IPython.Kernel
IPython.Types
IPython.ZeroMQ
IPython.Stdin
IPython.Message.Writer
IPython.Message.Parser
IPython.Message.UUID
-- other-modules:
other-extensions: OverloadedStrings
hs-source-dirs: src
default-language: Haskell2010
build-depends: base >=4.6 && <4.7,
aeson >=0.6 && <0.8,
bytestring >=0.10,
cereal >=0.3,
containers >=0.5,
text >=0.11,
unix >=2.6,
uuid >=1.3,
zeromq4-haskell >=0.1
src/IHaskell/Eval/Evaluate.hs
View file @
699e292b
...
@@ -70,7 +70,7 @@ import IHaskell.Display
...
@@ -70,7 +70,7 @@ import IHaskell.Display
import
qualified
IHaskell.Eval.Hoogle
as
Hoogle
import
qualified
IHaskell.Eval.Hoogle
as
Hoogle
import
IHaskell.Eval.Util
import
IHaskell.Eval.Util
import
IHaskell.BrokenPackages
import
IHaskell.BrokenPackages
import
qualified
IPython.Message.UUID
as
UUID
import
qualified
I
Haskell.I
Python.Message.UUID
as
UUID
import
Paths_ihaskell
(
version
)
import
Paths_ihaskell
(
version
)
import
Data.Version
(
versionBranch
)
import
Data.Version
(
versionBranch
)
...
...
ipython-kernel/src
/IPython/Kernel.hs
→
src/IHaskell
/IPython/Kernel.hs
View file @
699e292b
-- | This module exports all the types and functions necessary to create an
-- | This module exports all the types and functions necessary to create an
-- IPython language kernel that supports the @ipython console@ and @ipython
-- IPython language kernel that supports the @ipython console@ and @ipython
-- notebook@ frontends.
-- notebook@ frontends.
module
IPython.Kernel
(
module
I
Haskell.I
Python.Kernel
(
module
IPython
.
Types
,
module
I
Haskell
.
I
Python
.
Types
,
module
IPython
.
Message
.
Writer
,
module
I
Haskell
.
I
Python
.
Message
.
Writer
,
module
IPython
.
Message
.
Parser
,
module
I
Haskell
.
I
Python
.
Message
.
Parser
,
module
IPython
.
Message
.
UUID
,
module
I
Haskell
.
I
Python
.
Message
.
UUID
,
module
IPython
.
ZeroMQ
,
module
I
Haskell
.
I
Python
.
ZeroMQ
,
)
where
)
where
import
IPython.Types
import
I
Haskell.I
Python.Types
import
IPython.Message.Writer
import
I
Haskell.I
Python.Message.Writer
import
IPython.Message.Parser
import
I
Haskell.I
Python.Message.Parser
import
IPython.Message.UUID
import
I
Haskell.I
Python.Message.UUID
import
IPython.ZeroMQ
import
I
Haskell.I
Python.ZeroMQ
ipython-kernel/src
/IPython/Message/Parser.hs
→
src/IHaskell
/IPython/Message/Parser.hs
View file @
699e292b
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
-- This module is responsible for converting from low-level ByteStrings
-- This module is responsible for converting from low-level ByteStrings
-- obtained from the 0MQ sockets into Messages. The only exposed function is
-- obtained from the 0MQ sockets into Messages. The only exposed function is
-- `parseMessage`, which should only be used in the low-level 0MQ interface.
-- `parseMessage`, which should only be used in the low-level 0MQ interface.
module
IPython.Message.Parser
(
parseMessage
)
where
module
I
Haskell.I
Python.Message.Parser
(
parseMessage
)
where
import
Data.Aeson
((
.:
),
decode
,
Result
(
..
),
Object
)
import
Data.Aeson
((
.:
),
decode
,
Result
(
..
),
Object
)
import
Control.Applicative
((
<|>
))
import
Control.Applicative
((
<|>
))
...
@@ -15,7 +15,7 @@ import Data.Text (Text)
...
@@ -15,7 +15,7 @@ import Data.Text (Text)
import
qualified
Data.ByteString.Lazy
as
Lazy
import
qualified
Data.ByteString.Lazy
as
Lazy
import
IPython.Types
import
I
Haskell.I
Python.Types
type
LByteString
=
Lazy
.
ByteString
type
LByteString
=
Lazy
.
ByteString
...
...
ipython-kernel/src
/IPython/Message/UUID.hs
→
src/IHaskell
/IPython/Message/UUID.hs
View file @
699e292b
-- | Description : UUID generator and data structure
-- | Description : UUID generator and data structure
--
--
-- Generate, parse, and pretty print UUIDs for use with IPython.
-- Generate, parse, and pretty print UUIDs for use with IPython.
module
IPython.Message.UUID
(
module
I
Haskell.I
Python.Message.UUID
(
UUID
,
UUID
,
random
,
randoms
,
random
,
randoms
,
)
where
)
where
...
...
ipython-kernel/src
/IPython/Message/Writer.hs
→
src/IHaskell
/IPython/Message/Writer.hs
View file @
699e292b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
-- | Description : @ToJSON@ for Messages
-- | Description : @ToJSON@ for Messages
--
--
-- This module contains the @ToJSON@ instance for @Message@.
-- This module contains the @ToJSON@ instance for @Message@.
module
IPython.Message.Writer
(
module
I
Haskell.I
Python.Message.Writer
(
ToJSON
(
..
)
ToJSON
(
..
)
)
where
)
where
...
@@ -15,7 +15,7 @@ import qualified Data.ByteString.Lazy as L
...
@@ -15,7 +15,7 @@ import qualified Data.ByteString.Lazy as L
import
qualified
Data.ByteString
as
B
import
qualified
Data.ByteString
as
B
import
Data.Text.Encoding
import
Data.Text.Encoding
import
IPython.Types
import
I
Haskell.I
Python.Types
-- Convert message bodies into JSON.
-- Convert message bodies into JSON.
instance
ToJSON
Message
where
instance
ToJSON
Message
where
...
...
ipython-kernel/src
/IPython/Stdin.hs
→
src/IHaskell
/IPython/Stdin.hs
View file @
699e292b
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
-- and @recordKernelProfile@. Note that if this is being used from within
-- and @recordKernelProfile@. Note that if this is being used from within
-- the GHC API, @fixStdin@ /must/ be called from within the GHC session
-- the GHC API, @fixStdin@ /must/ be called from within the GHC session
-- not from the host code.
-- not from the host code.
module
IPython.Stdin
(
module
I
Haskell.I
Python.Stdin
(
fixStdin
,
fixStdin
,
recordParentHeader
,
recordParentHeader
,
recordKernelProfile
recordKernelProfile
...
@@ -45,9 +45,9 @@ import System.Posix.IO
...
@@ -45,9 +45,9 @@ import System.Posix.IO
import
System.IO.Unsafe
import
System.IO.Unsafe
import
qualified
Data.Map
as
Map
import
qualified
Data.Map
as
Map
import
IPython.Types
import
I
Haskell.I
Python.Types
import
IPython.ZeroMQ
import
I
Haskell.I
Python.ZeroMQ
import
IPython.Message.UUID
as
UUID
import
I
Haskell.I
Python.Message.UUID
as
UUID
stdinInterface
::
MVar
ZeroMQStdin
stdinInterface
::
MVar
ZeroMQStdin
{-# NOINLINE stdinInterface #-}
{-# NOINLINE stdinInterface #-}
...
...
ipython-kernel/src
/IPython/Types.hs
→
src/IHaskell
/IPython/Types.hs
View file @
699e292b
{-# LANGUAGE OverloadedStrings, DeriveDataTypeable, DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings, DeriveDataTypeable, DeriveGeneric #-}
-- | This module contains all types used to create an IPython language
-- | This module contains all types used to create an IPython language
-- kernel.
-- kernel.
module
IPython.Types
(
module
I
Haskell.I
Python.Types
(
-- * IPython kernel profile
-- * IPython kernel profile
Profile
(
..
),
Profile
(
..
),
Transport
(
..
),
Transport
(
..
),
...
@@ -34,7 +34,7 @@ import qualified Data.Text as Text
...
@@ -34,7 +34,7 @@ import qualified Data.Text as Text
import
qualified
Data.Text.Encoding
as
Text
import
qualified
Data.Text.Encoding
as
Text
import
Data.Text
(
Text
)
import
Data.Text
(
Text
)
import
Data.Serialize
import
Data.Serialize
import
IPython.Message.UUID
import
I
Haskell.I
Python.Message.UUID
import
GHC.Generics
(
Generic
)
import
GHC.Generics
(
Generic
)
import
Data.Typeable
import
Data.Typeable
import
Data.List
(
find
)
import
Data.List
(
find
)
...
...
ipython-kernel/src
/IPython/ZeroMQ.hs
→
src/IHaskell
/IPython/ZeroMQ.hs
View file @
699e292b
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
-- The "ZeroMQ" module abstracts away the low-level 0MQ based interface with IPython,
-- The "ZeroMQ" module abstracts away the low-level 0MQ based interface with IPython,
-- replacing it instead with a Haskell Channel based interface. The `serveProfile` function
-- replacing it instead with a Haskell Channel based interface. The `serveProfile` function
-- takes a IPython profile specification and returns the channel interface to use.
-- takes a IPython profile specification and returns the channel interface to use.
module
IPython.ZeroMQ
(
module
I
Haskell.I
Python.ZeroMQ
(
ZeroMQInterface
(
..
),
ZeroMQInterface
(
..
),
ZeroMQStdin
(
..
),
ZeroMQStdin
(
..
),
serveProfile
,
serveProfile
,
...
@@ -19,9 +19,9 @@ import System.IO.Unsafe
...
@@ -19,9 +19,9 @@ import System.IO.Unsafe
import
Data.Aeson
(
encode
)
import
Data.Aeson
(
encode
)
import
System.ZMQ4
hiding
(
stdin
)
import
System.ZMQ4
hiding
(
stdin
)
import
IPython.Types
import
I
Haskell.I
Python.Types
import
IPython.Message.Parser
import
I
Haskell.I
Python.Message.Parser
import
IPython.Message.Writer
import
I
Haskell.I
Python.Message.Writer
-- | The channel interface to the ZeroMQ sockets. All communication is done via
-- | The channel interface to the ZeroMQ sockets. All communication is done via
-- Messages, which are encoded and decoded into a lower level form before being
-- Messages, which are encoded and decoded into a lower level form before being
...
...
src/IHaskell/Types.hs
View file @
699e292b
...
@@ -41,7 +41,7 @@ import Data.Aeson (Value)
...
@@ -41,7 +41,7 @@ import Data.Aeson (Value)
import
Text.Read
as
Read
hiding
(
pfail
,
String
)
import
Text.Read
as
Read
hiding
(
pfail
,
String
)
import
Text.ParserCombinators.ReadP
import
Text.ParserCombinators.ReadP
import
IPython.Kernel
import
I
Haskell.I
Python.Kernel
data
ViewFormat
data
ViewFormat
=
Pdf
=
Pdf
...
...
src/Main.hs
View file @
699e292b
...
@@ -27,11 +27,11 @@ import IHaskell.Eval.Info
...
@@ -27,11 +27,11 @@ import IHaskell.Eval.Info
import
IHaskell.Flags
import
IHaskell.Flags
import
IHaskell.IPython
import
IHaskell.IPython
import
IHaskell.Types
import
IHaskell.Types
import
IPython.ZeroMQ
import
I
Haskell.I
Python.ZeroMQ
import
IPython.Types
import
I
Haskell.I
Python.Types
import
qualified
Data.ByteString.Char8
as
Chars
import
qualified
Data.ByteString.Char8
as
Chars
import
qualified
IPython.Message.UUID
as
UUID
import
qualified
I
Haskell.I
Python.Message.UUID
as
UUID
import
qualified
IPython.Stdin
as
Stdin
import
qualified
I
Haskell.I
Python.Stdin
as
Stdin
-- GHC API imports.
-- GHC API imports.
import
GHC
hiding
(
extensions
,
language
)
import
GHC
hiding
(
extensions
,
language
)
...
...
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