Surfaced in commercialhaskell/curator#52 (comment)
This is a weird one - the stack repository has a definition that looks like this:
share [ mkPersist sqlSettings
, mkMigrate "migrateAll"
]
[persistLowerCase|
PrecompiledCacheParent sql="precompiled_cache"
platformGhcDir FilePath "default=(hex(randomblob(16)))"
compiler Text
cabalVersion Text
packageKey Text
optionsHash ByteString
haddock Bool default=0
library FilePath Maybe
UniquePrecompiledCacheParent platformGhcDir compiler cabalVersion packageKey optionsHash haddock sql="unique_precompiled_cache"
deriving Show
The platformGhcDir FilePath "default=(hex(randomblob(16)))" line is strange. I'm not sure how this would have parsed in the old parser or been used, but the new one properly parses but fails to generate the right code.
Surfaced in commercialhaskell/curator#52 (comment)
This is a weird one - the
stackrepository has a definition that looks like this:share [ mkPersist sqlSettings , mkMigrate "migrateAll" ] [persistLowerCase| PrecompiledCacheParent sql="precompiled_cache" platformGhcDir FilePath "default=(hex(randomblob(16)))" compiler Text cabalVersion Text packageKey Text optionsHash ByteString haddock Bool default=0 library FilePath Maybe UniquePrecompiledCacheParent platformGhcDir compiler cabalVersion packageKey optionsHash haddock sql="unique_precompiled_cache" deriving ShowThe
platformGhcDir FilePath "default=(hex(randomblob(16)))"line is strange. I'm not sure how this would have parsed in the old parser or been used, but the new one properly parses but fails to generate the right code.