Fix to support GHC < 710
This commit is contained in:
parent
e56fc650c2
commit
b6ee20dfe0
1 changed files with 5 additions and 1 deletions
|
@ -6,6 +6,10 @@
|
|||
{-# LANGUAGE FlexibleInstances #-}
|
||||
{-# LANGUAGE TypeSynonymInstances #-}
|
||||
{-# LANGUAGE ScopedTypeVariables #-}
|
||||
{-# LANGUAGE CPP #-}
|
||||
#if __GLASGOW_HASKELL__ < 710
|
||||
{-# LANGUAGE OverlappingInstances #-}
|
||||
#endif
|
||||
|
||||
module Servant.ForeignSpec where
|
||||
|
||||
|
@ -39,7 +43,7 @@ instance HasForeignType LangX Bool where
|
|||
typeFor _ _ = "boolX"
|
||||
instance {-# Overlapping #-} HasForeignType LangX String where
|
||||
typeFor _ _ = "stringX"
|
||||
instance {-# Overlapable #-} HasForeignType LangX a => HasForeignType LangX [a] where
|
||||
instance {-# Overlappable #-} HasForeignType LangX a => HasForeignType LangX [a] where
|
||||
typeFor lang _ = "listX of " <> typeFor lang (Proxy :: Proxy a)
|
||||
|
||||
type TestApi
|
||||
|
|
Loading…
Reference in a new issue