mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 18:42:30 +03:00
15 lines
405 B
Haskell
15 lines
405 B
Haskell
{-# LANGUAGE TemplateHaskell #-}
|
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
|
|
|
module Hasura.RQL.Instances where
|
|
|
|
import Hasura.Prelude
|
|
|
|
import Instances.TH.Lift ()
|
|
import qualified Language.Haskell.TH.Syntax as TH
|
|
|
|
import qualified Data.HashMap.Strict as M
|
|
|
|
instance (TH.Lift k, TH.Lift v) => TH.Lift (M.HashMap k v) where
|
|
lift m = [| M.fromList $(TH.lift $ M.toList m) |]
|