mirror of
https://github.com/IHaskell/IHaskell.git
synced 2025-04-16 11:26:08 +00:00
ihaskell-widgets: support singletons-3.0
This commit is contained in:
parent
00dbaa527b
commit
dcdf4574de
@ -112,6 +112,9 @@ library
|
||||
-- so let cabal choose the right one.
|
||||
, singletons -any
|
||||
|
||||
if impl (ghc >= 9.0)
|
||||
build-depends: singletons-base -any
|
||||
|
||||
-- Directories containing source files.
|
||||
hs-source-dirs: src
|
||||
|
||||
|
@ -18,11 +18,13 @@
|
||||
|
||||
module IHaskell.Display.Widgets.Singletons where
|
||||
|
||||
#if MIN_VERSION_singletons(3,0,0)
|
||||
import Data.Singletons.Base.TH
|
||||
#elif MIN_VERSION_singletons(2,4,0)
|
||||
import Data.Singletons.TH
|
||||
|
||||
#if MIN_VERSION_singletons(2,4,0)
|
||||
#else
|
||||
import Data.Singletons.Prelude.Ord
|
||||
import Data.Singletons.TH
|
||||
#endif
|
||||
|
||||
-- Widget properties
|
||||
|
@ -85,13 +85,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
|
||||
|
||||
#if MIN_VERSION_singletons(3,0,0)
|
||||
import Data.Singletons.Base.TH
|
||||
#else
|
||||
import Data.Singletons.TH
|
||||
#endif
|
||||
|
||||
import GHC.IO.Exception
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user