I just tried generating code for an OpenAPI spec and the result I get includes a file MyApiName/Types/Value.hs-boot that looks like this:
module MyApiName.Types.Value where
import Data.Aeson
import qualified Data.Aeson as Data.Aeson.Types.Internal
import qualified MyApiName.Common
data Value
instance Show Value
instance Eq Value
instance FromJSON Value
instance ToJSON Value
This doesn't build because the Value type conflicts with the type of the same name from Data.Aeson. I presume the solution here is to import Aeson qualified, like the corresponding .hs file does.
I just tried generating code for an OpenAPI spec and the result I get includes a file
MyApiName/Types/Value.hs-boot
that looks like this:This doesn't build because the
Value
type conflicts with the type of the same name fromData.Aeson
. I presume the solution here is to import Aeson qualified, like the corresponding.hs
file does.