Fix to support GHC < 710

This commit is contained in:
Maksymilian Owsianny 2015-12-02 13:02:05 +00:00
parent e56fc650c2
commit b6ee20dfe0

View File

@ -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