- {\p -> case unpackFS $1 of
- "exposedModules" -> p{exposedModules = $3}
- "hiddenModules" -> p{hiddenModules = $3}
- "importDirs" -> p{importDirs = $3}
- "libraryDirs" -> p{libraryDirs = $3}
- "hsLibraries" -> p{hsLibraries = $3}
- "extraLibraries" -> p{extraLibraries = $3}
- "extraGHCiLibraries"-> p{extraGHCiLibraries= $3}
- "includeDirs" -> p{includeDirs = $3}
- "includes" -> p{includes = $3}
- "hugsOptions" -> p{hugsOptions = $3}
- "ccOptions" -> p{ccOptions = $3}
- "ldOptions" -> p{ldOptions = $3}
- "frameworkDirs" -> p{frameworkDirs = $3}
- "frameworks" -> p{frameworks = $3}
- "haddockInterfaces" -> p{haddockInterfaces = $3}
- "haddockHTMLs" -> p{haddockHTMLs = $3}
- "depends" -> p{depends = []}
- -- empty list only, non-empty handled below
- other -> p
- }
+ {\p -> case unpackFS $1 of
+ "exposedModules" -> p{exposedModules = map mkModuleNameFS $3}
+ "hiddenModules" -> p{hiddenModules = map mkModuleNameFS $3}
+ "importDirs" -> p{importDirs = map unpackFS $3}
+ "libraryDirs" -> p{libraryDirs = map unpackFS $3}
+ "hsLibraries" -> p{hsLibraries = map unpackFS $3}
+ "extraLibraries" -> p{extraLibraries = map unpackFS $3}
+ "extraGHCiLibraries"-> p{extraGHCiLibraries= map unpackFS $3}
+ "includeDirs" -> p{includeDirs = map unpackFS $3}
+ "includes" -> p{includes = map unpackFS $3}
+ "hugsOptions" -> p{hugsOptions = map unpackFS $3}
+ "ccOptions" -> p{ccOptions = map unpackFS $3}
+ "ldOptions" -> p{ldOptions = map unpackFS $3}
+ "frameworkDirs" -> p{frameworkDirs = map unpackFS $3}
+ "frameworks" -> p{frameworks = map unpackFS $3}
+ "haddockInterfaces" -> p{haddockInterfaces = map unpackFS $3}
+ "haddockHTMLs" -> p{haddockHTMLs = map unpackFS $3}
+ "depends" -> p{depends = []}
+ -- empty list only, non-empty handled below
+ other -> p
+ }