diff --git a/oracle-simple.cabal b/oracle-simple.cabal index 366a0bc..4d385ba 100644 --- a/oracle-simple.cabal +++ b/oracle-simple.cabal @@ -58,6 +58,7 @@ library , time , uuid , vector + , derive-storable-plugin default-language: Haskell2010 ghc-options: -Wall -Werror -Wcompat -Widentities -Wincomplete-uni-patterns -Wincomplete-record-updates -Wmissing-export-lists -Wno-implicit-prelude -Wno-safe -Wno-unsafe -Wnoncanonical-monad-instances -Wredundant-constraints -Wpartial-fields -Wmissed-specialisations -Wunused-packages -O2 -haddock if os(linux) && flag(default_paths) diff --git a/src/Database/Oracle/Simple/Internal.hs b/src/Database/Oracle/Simple/Internal.hs index 7756a15..f15983f 100644 --- a/src/Database/Oracle/Simple/Internal.hs +++ b/src/Database/Oracle/Simple/Internal.hs @@ -8,6 +8,8 @@ {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE ViewPatterns #-} +{-# OPTIONS_GHC -fplugin=Foreign.Storable.Generic.Plugin #-} +{-# OPTIONS_GHC -fplugin-opt=Foreign.Storable.Generic.Plugin:-v1 #-} {- HLINT ignore "Avoid restricted function" -} diff --git a/src/Database/Oracle/Simple/JSON.hs b/src/Database/Oracle/Simple/JSON.hs index 5c91f7c..a0adfe5 100644 --- a/src/Database/Oracle/Simple/JSON.hs +++ b/src/Database/Oracle/Simple/JSON.hs @@ -8,6 +8,8 @@ {-# LANGUAGE TypeApplications #-} {-# LANGUAGE UndecidableInstances #-} {-# OPTIONS_GHC -Wno-missed-specialisations #-} -- suppressing fromFloatDigits warning +{-# OPTIONS_GHC -fplugin=Foreign.Storable.Generic.Plugin #-} +{-# OPTIONS_GHC -fplugin-opt=Foreign.Storable.Generic.Plugin:-v1 #-} module Database.Oracle.Simple.JSON (AesonField (..), JsonDecodeError (..), DPIJsonNode(..)) where diff --git a/stack.yaml b/stack.yaml index 75243fe..1202982 100644 --- a/stack.yaml +++ b/stack.yaml @@ -3,3 +3,6 @@ resolver: packages: - . + +extra-deps: + - derive-storable-plugin-0.2.3.7@sha256:f82b5cc67d7affbb41040d3a5812e6a587894e232e7a5d5ccb33103836e51fa6,2868