@@ -10,7 +10,7 @@ module Derive.API.TH
10 , derivingOptionsToJsonOptions
10 , derivingOptionsToJsonOptions
11 , deriveApiInstances
11 , deriveApiInstances
12 , deriveApiAndArbitraryInstances
12 , deriveApiAndArbitraryInstances
13−#ifdef BACKEND
13+#ifndef ghcjs_HOST_OS
14 , derivingOptionsToSchemaOptions
14 , derivingOptionsToSchemaOptions
15 , deriveToParamSchema
15 , deriveToParamSchema
16 , deriveToSchema
16 , deriveToSchema
@@ -61,13 +61,9 @@ deriveApiAndArbitraryInstances opts tname =
63#if MIN_VERSION_containers(0,6,6)
63#if MIN_VERSION_containers(0,6,6)
64−#elif MIN_VERSION_template_haskell(2,17,0)
65−instance (Lift k, Lift a) => Lift (Map k a) where
66− liftTyped x = unsafeCodeCoerce (lift x)
67− lift m = [|M.fromList (M.toList m)|]
68#elif MIN_VERSION_template_haskell(2,16,0)
64#elif MIN_VERSION_template_haskell(2,16,0)
69instance (Lift k, Lift a) => Lift (Map k a) where
65instance (Lift k, Lift a) => Lift (Map k a) where
70− liftTyped x = unsafeTExpCoerce (lift x)
66+ liftTyped x = unsafeCodeCoerce (lift x)
71 lift m = [|M.fromList (M.toList m)|]
67 lift m = [|M.fromList (M.toList m)|]
73instance (Lift k, Lift a) => Lift (Map k a) where
69instance (Lift k, Lift a) => Lift (Map k a) where