We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6c25fe0 + 60be296 commit 04e8308Copy full SHA for 04e8308
cabal2nix/src/Distribution/Nixpkgs/Haskell/FromCabal/Configuration.hs
@@ -19,7 +19,7 @@ import Control.Monad.Fail
19
import Data.Aeson
20
import Data.Map as Map
21
import Data.Set as Set
22
-import Data.Text as T
+import qualified Data.Text as T
23
import Data.Yaml
24
import Distribution.Compiler
25
import Distribution.Nixpkgs.Haskell.Constraint
@@ -105,7 +105,7 @@ instance FromJSONKey Identifier where
105
instance FromJSONKey PackageName where
106
fromJSONKey = FromJSONKeyText parseKey
107
108
-parseKey :: FromJSON k => Text -> k
+parseKey :: FromJSON k => T.Text -> k
109
parseKey s = either error id (parseEither parseJSON (String s))
110
111
readConfiguration :: FilePath -> IO Configuration
0 commit comments