Commit 699e292b authored by Andrew Gibiansky's avatar Andrew Gibiansky

Removed `ipython-kernel`, merged back.

Separating packages not working so well.
parent df62bd56
...@@ -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
......
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.
import Distribution.Simple
main = defaultMain
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
...@@ -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 IHaskell.IPython.Message.UUID as UUID
import Paths_ihaskell (version) import Paths_ihaskell (version)
import Data.Version (versionBranch) import Data.Version (versionBranch)
......
-- | 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 IHaskell.IPython.Kernel (
module IPython.Types, module IHaskell.IPython.Types,
module IPython.Message.Writer, module IHaskell.IPython.Message.Writer,
module IPython.Message.Parser, module IHaskell.IPython.Message.Parser,
module IPython.Message.UUID, module IHaskell.IPython.Message.UUID,
module IPython.ZeroMQ, module IHaskell.IPython.ZeroMQ,
) where ) where
import IPython.Types import IHaskell.IPython.Types
import IPython.Message.Writer import IHaskell.IPython.Message.Writer
import IPython.Message.Parser import IHaskell.IPython.Message.Parser
import IPython.Message.UUID import IHaskell.IPython.Message.UUID
import IPython.ZeroMQ import IHaskell.IPython.ZeroMQ
...@@ -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 IHaskell.IPython.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 IHaskell.IPython.Types
type LByteString = Lazy.ByteString type LByteString = Lazy.ByteString
......
-- | 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 IHaskell.IPython.Message.UUID (
UUID, UUID,
random, randoms, random, randoms,
) where ) where
......
...@@ -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 IHaskell.IPython.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 IHaskell.IPython.Types
-- Convert message bodies into JSON. -- Convert message bodies into JSON.
instance ToJSON Message where instance ToJSON Message where
......
...@@ -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 IHaskell.IPython.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 IHaskell.IPython.Types
import IPython.ZeroMQ import IHaskell.IPython.ZeroMQ
import IPython.Message.UUID as UUID import IHaskell.IPython.Message.UUID as UUID
stdinInterface :: MVar ZeroMQStdin stdinInterface :: MVar ZeroMQStdin
{-# NOINLINE stdinInterface #-} {-# NOINLINE stdinInterface #-}
......
{-# 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 IHaskell.IPython.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 IHaskell.IPython.Message.UUID
import GHC.Generics (Generic) import GHC.Generics (Generic)
import Data.Typeable import Data.Typeable
import Data.List (find) import Data.List (find)
......
...@@ -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 IHaskell.IPython.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 IHaskell.IPython.Types
import IPython.Message.Parser import IHaskell.IPython.Message.Parser
import IPython.Message.Writer import IHaskell.IPython.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
......
...@@ -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 IHaskell.IPython.Kernel
data ViewFormat data ViewFormat
= Pdf = Pdf
......
...@@ -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 IHaskell.IPython.ZeroMQ
import IPython.Types import IHaskell.IPython.Types
import qualified Data.ByteString.Char8 as Chars import qualified Data.ByteString.Char8 as Chars
import qualified IPython.Message.UUID as UUID import qualified IHaskell.IPython.Message.UUID as UUID
import qualified IPython.Stdin as Stdin import qualified IHaskell.IPython.Stdin as Stdin
-- GHC API imports. -- GHC API imports.
import GHC hiding (extensions, language) import GHC hiding (extensions, language)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment