Commit 6ef94c16 authored by artuuge's avatar artuuge

ihaskell-widgets and singletons >= 2.0

parent 8177b775
import Distribution.Simple
import System.Cmd
import System.Process
main = defaultMainWithHooks
simpleUserHooks { preConf = \args confFlags -> do
......
......@@ -68,7 +68,7 @@
"jpg <- get \"http://imgs.xkcd.com/comics/functional.png\"\n",
"\n",
"img <- mkImageWidget\n",
"setField img SB64Value (encode64 jpg)\n",
"setField img B64Value (encode64 jpg)\n",
"img"
]
},
......
......@@ -28,6 +28,7 @@
"outputs": [],
"source": [
"{-# LANGUAGE OverloadedStrings #-}\n",
"{-# LANGUAGE FlexibleContexts #-}\n",
"import IHaskell.Display.Widgets"
]
},
......
......@@ -95,20 +95,35 @@ library
-- other-extensions:
-- Other library packages from which modules are imported.
build-depends: aeson >=0.7 && < 0.11
, base >=4.7 && <4.9
, containers >= 0.5
, ipython-kernel >= 0.6.1.2
, text >= 0.11
, unordered-containers -any
, nats -any
, vinyl >= 0.5
, vector -any
, singletons >= 0.9.0 && <2.0
, scientific -any
, unix -any
, ihaskell >= 0.6.4.1
-- singletons 2.* require ghc 7.10.2
if impl(ghc >= 7.10.2)
build-depends: aeson >=0.7 && < 0.11
, base >=4.7 && <4.9
, containers >= 0.5
, ipython-kernel >= 0.6.1.2
, text >= 0.11
, unordered-containers -any
, nats -any
, vinyl >= 0.5
, vector -any
, singletons >= 0.9.0
, scientific -any
, unix -any
, ihaskell >= 0.6.4.1
else
build-depends: aeson >=0.7 && < 0.11
, base >=4.7 && <4.9
, containers >= 0.5
, ipython-kernel >= 0.6.1.2
, text >= 0.11
, unordered-containers -any
, nats -any
, vinyl >= 0.5
, vector -any
, singletons >= 0.9.0 && <2.0
, scientific -any
, unix -any
, ihaskell >= 0.6.4.1
-- Directories containing source files.
hs-source-dirs: src
......
......@@ -5,10 +5,13 @@
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE InstanceSigs #-}
module IHaskell.Display.Widgets.Singletons where
import Data.Singletons.TH
import Data.Singletons.Prelude.Ord
-- Widget properties
singletons
......
......@@ -11,6 +11,7 @@ cabal update
cabal install happy alex
cabal install cpphs
cabal install gtk2hs-buildtools
cabal install HTTP
# Build ihaskell, and all the display packages
./build.sh all
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