mirror of
https://github.com/IHaskell/IHaskell.git
synced 2025-04-16 03:16:20 +00:00
Merge singletons 3.0
This commit is contained in:
commit
b26209a9c8
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -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
|
||||
- zlib
|
||||
|
Loading…
x
Reference in New Issue
Block a user