Commit b26209a9 authored by David Davó's avatar David Davó

Merge singletons 3.0

parents 2ebdc43b a6d0a651
......@@ -41,6 +41,7 @@ jobs:
- stack-yaml: 'stack-8.2.yaml'
- stack-yaml: 'stack-8.4.yaml'
- stack-yaml: 'stack-8.6.yaml'
- stack-yaml: 'stack-8.8.yaml'
- stack-yaml: 'stack.yaml'
steps:
......
......@@ -17,12 +17,14 @@
#endif
module IHaskell.Display.Widgets.Singletons where
import Data.Singletons.TH
#if MIN_VERSION_singletons(2,4,0)
#if MIN_VERSION_singletons(3,0,0)
import Data.Singletons.Base.TH
#elif MIN_VERSION_singletons(2,4,0)
import Data.Singletons.TH
#else
import Data.Singletons.Prelude.Ord
import Data.Singletons.TH
#endif
-- Widget properties
......
......@@ -13,6 +13,7 @@
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE AutoDeriveTypeable #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
......@@ -86,16 +87,19 @@ import Data.Vinyl.Functor (Compose(..), Const(..))
import Data.Vinyl.Lens (rget, rput, type ())
import Data.Vinyl.TypeLevel (RecAll)
#if MIN_VERSION_singletons(2,4,0)
#if MIN_VERSION_singletons(3,0,0)
import Data.List.Singletons
#elif MIN_VERSION_singletons(2,4,0)
import Data.Singletons.Prelude.List
#else
import Data.Singletons.Prelude ((:++))
#endif
import Data.Text.Lazy (unpack)
import Data.Text.Lazy.Encoding
#if MIN_VERSION_singletons(3,0,0)
import Data.Singletons.Base.TH
#else
import Data.Singletons.TH
#endif
import GHC.IO.Exception
......
......@@ -222,6 +222,7 @@ mkConfig var = KernelConfig
, languageFileExtension = ".txt"
, languageCodeMirrorMode = "null"
, languagePygmentsLexer = "Text"
, languageMimeType = "x/extended-huttons-razor"
}
, writeKernelspec = const $ return $ KernelSpec
{ kernelDisplayName = "Hutton's Razor"
......
......@@ -62,6 +62,7 @@ languageConfig = LanguageInfo
, languageFileExtension = ".txt"
, languageCodeMirrorMode = "null"
, languagePygmentsLexer = "Text"
, languageMimeType = "x/funcalc"
}
languageKernelspec :: KernelSpec
......
......@@ -52,4 +52,4 @@ nix:
- pango
- pkgconfig
- zeromq
- zlib
\ No newline at end of file
- zlib
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