Skip to content

Commit

Permalink
cabal2nix: fix missing qualified on a Data.Text import
Browse files Browse the repository at this point in the history
This fixes compilation of cabal2nix with text >= 2.1.2.

Resolves #639.
  • Loading branch information
sternenseemann committed Feb 6, 2025
1 parent 6c25fe0 commit 60be296
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Control.Monad.Fail
import Data.Aeson
import Data.Map as Map
import Data.Set as Set
import Data.Text as T
import qualified Data.Text as T
import Data.Yaml
import Distribution.Compiler
import Distribution.Nixpkgs.Haskell.Constraint
Expand Down Expand Up @@ -105,7 +105,7 @@ instance FromJSONKey Identifier where
instance FromJSONKey PackageName where
fromJSONKey = FromJSONKeyText parseKey

parseKey :: FromJSON k => Text -> k
parseKey :: FromJSON k => T.Text -> k
parseKey s = either error id (parseEither parseJSON (String s))

readConfiguration :: FilePath -> IO Configuration
Expand Down

0 comments on commit 60be296

Please sign in to comment.