diff --git a/ihaskell.cabal b/ihaskell.cabal index 857ab7b6..5a3df479 100644 --- a/ihaskell.cabal +++ b/ihaskell.cabal @@ -92,7 +92,7 @@ library utf8-string -any, uuid >=1.3, vector -any, - zeromq4-haskell >=0.1 + ipython-kernel >=0.2 exposed-modules: IHaskell.Display IHaskell.Convert @@ -111,13 +111,6 @@ library IHaskell.Flags IHaskell.Types 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 -- other-modules: -- Paths_ihaskell @@ -144,6 +137,7 @@ executable IHaskell ihaskell -any, MissingH >=1.2, text -any, + ipython-kernel >= 0.2, unix >= 2.6 Test-Suite hspec @@ -193,8 +187,8 @@ Test-Suite hspec utf8-string -any, uuid >=1.3, vector -any, - zeromq4-haskell >=0.1, - setenv ==0.1.* + setenv ==0.1.*, + ipython-kernel >= 0.2 default-extensions: diff --git a/ipython-kernel/LICENSE b/ipython-kernel/LICENSE new file mode 100644 index 00000000..869533fa --- /dev/null +++ b/ipython-kernel/LICENSE @@ -0,0 +1,20 @@ +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. diff --git a/ipython-kernel/ipython-kernel.cabal b/ipython-kernel/ipython-kernel.cabal new file mode 100644 index 00000000..95c13359 --- /dev/null +++ b/ipython-kernel/ipython-kernel.cabal @@ -0,0 +1,37 @@ +name: ipython-kernel +version: 0.2.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: IHaskell.IPython.Kernel + IHaskell.IPython.Types + IHaskell.IPython.ZeroMQ + IHaskell.IPython.Stdin + IHaskell.IPython.Message.Writer + IHaskell.IPython.Message.Parser + IHaskell.IPython.Message.UUID + -- other-modules: + other-extensions: OverloadedStrings + hs-source-dirs: src + default-language: Haskell2010 + build-depends: base >=4.6 && < 4.8, + aeson >=0.6 && < 0.9, + bytestring >=0.10, + cereal >=0.3, + containers >=0.5, + text >=0.11, + unix >=2.6, + uuid >=1.3, + zeromq4-haskell >=0.1 diff --git a/src/IHaskell/IPython/Kernel.hs b/ipython-kernel/src/IHaskell/IPython/Kernel.hs similarity index 100% rename from src/IHaskell/IPython/Kernel.hs rename to ipython-kernel/src/IHaskell/IPython/Kernel.hs diff --git a/src/IHaskell/IPython/Message/Parser.hs b/ipython-kernel/src/IHaskell/IPython/Message/Parser.hs similarity index 100% rename from src/IHaskell/IPython/Message/Parser.hs rename to ipython-kernel/src/IHaskell/IPython/Message/Parser.hs diff --git a/src/IHaskell/IPython/Message/UUID.hs b/ipython-kernel/src/IHaskell/IPython/Message/UUID.hs similarity index 100% rename from src/IHaskell/IPython/Message/UUID.hs rename to ipython-kernel/src/IHaskell/IPython/Message/UUID.hs diff --git a/src/IHaskell/IPython/Message/Writer.hs b/ipython-kernel/src/IHaskell/IPython/Message/Writer.hs similarity index 100% rename from src/IHaskell/IPython/Message/Writer.hs rename to ipython-kernel/src/IHaskell/IPython/Message/Writer.hs diff --git a/src/IHaskell/IPython/Stdin.hs b/ipython-kernel/src/IHaskell/IPython/Stdin.hs similarity index 100% rename from src/IHaskell/IPython/Stdin.hs rename to ipython-kernel/src/IHaskell/IPython/Stdin.hs diff --git a/src/IHaskell/IPython/Types.hs b/ipython-kernel/src/IHaskell/IPython/Types.hs similarity index 100% rename from src/IHaskell/IPython/Types.hs rename to ipython-kernel/src/IHaskell/IPython/Types.hs diff --git a/src/IHaskell/IPython/ZeroMQ.hs b/ipython-kernel/src/IHaskell/IPython/ZeroMQ.hs similarity index 100% rename from src/IHaskell/IPython/ZeroMQ.hs rename to ipython-kernel/src/IHaskell/IPython/ZeroMQ.hs