@@ -6,6 +6,10 @@
66{-# LANGUAGE FlexibleInstances #-}
77{-# LANGUAGE TypeSynonymInstances #-}
88{-# LANGUAGE ScopedTypeVariables #-}
9+{-# LANGUAGE CPP #-}
10+#if __GLASGOW_HASKELL__ < 710
11+{-# LANGUAGE OverlappingInstances #-}
12+#endif
913
1014module Servant.ForeignSpec where
1115
@@ -39,7 +43,7 @@ instance HasForeignType LangX Bool where
3943 typeFor _ _ = "boolX"
4044instance {-# Overlapping #-} HasForeignType LangX String where
4145 typeFor _ _ = "stringX"
42−instance {-# Overlapable #-} HasForeignType LangX a => HasForeignType LangX [a] where
46+instance {-# Overlappable #-} HasForeignType LangX a => HasForeignType LangX [a] where
4347 typeFor lang _ = "listX of " <> typeFor lang (Proxy :: Proxy a)
4448
4549type TestApi