This repository was archived by the owner on Aug 9, 2024. It is now read-only.
File tree 3 files changed +10
-6
lines changed
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change
1
+ with-compiler : wasm32-wasi-ghc
2
+ with-hc-pkg : wasm32-wasi-ghc-pkg
3
+ packages : .
4
+ allow-newer : ghc-prim
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ executable cabal2json
25
25
hs-source-dirs : src
26
26
default-language : Haskell2010
27
27
build-depends :
28
- Cabal >= 3.2.1.0 && < 3.3 ,
29
- aeson >= 1.5.6.0 && < 1.6 ,
28
+ Cabal >= 3.9 && < 3.10 ,
29
+ aeson >= 1.5.6.0 && < 3 ,
30
30
base >= 4.7 && < 5 ,
31
- bytestring >= 0.10.12.0 && < 0.11 ,
31
+ bytestring >= 0.10.12.0 && < 0.12 ,
32
32
filepath >= 1.4.2.1 && < 1.5
Original file line number Diff line number Diff line change 1
- {-# OPTIONS_GHC -Wall #-}
1
+ {-# OPTIONS_GHC -Wall -Werror #-}
2
2
{-# LANGUAGE OverloadedStrings #-}
3
3
4
4
module Main (main ) where
@@ -8,8 +8,8 @@ import Distribution.Package
8
8
import Distribution.PackageDescription
9
9
import Distribution.PackageDescription.Parsec (parseGenericPackageDescriptionMaybe )
10
10
import Distribution.ModuleName (ModuleName , toFilePath )
11
- import Distribution.Types.UnqualComponentName
12
11
import Distribution.Types.Version
12
+ import Distribution.Utils.Path
13
13
14
14
import System.Environment (getArgs )
15
15
import System.FilePath
@@ -79,7 +79,7 @@ getComponentFromFile gpkg file =
79
79
omod = otherModules info
80
80
sourceDirs = hsSourceDirs info
81
81
modules = map Left omod ++ fjoin mainmod
82
- genFP f = map (normalise . (</> f)) sourceDirs
82
+ genFP f = map (normalise . (</> f) . getSymbolicPath ) sourceDirs
83
83
check = any (
84
84
either (any (`isPrefixOf` file) . genFP . toFilePath)
85
85
(elem file . genFP))
You can’t perform that action at this time.
0 commit comments