Skip to content

Commit

Permalink
Build against turtle-1.6 (#2431)
Browse files Browse the repository at this point in the history
Related to commercialhaskell/stackage#6613

I kept the deprecated functions so that we could also
support `turtle-1.5` for one release, to (hypothetically)
simplify migrations for reverse dependencies.  After publishing
one release with this change we can remove the deprecated
functions.
  • Loading branch information
Gabriella439 authored Jul 3, 2022
1 parent 03c6534 commit 5d9f0cc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dhall/dhall.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ Test-Suite tasty
tasty-quickcheck >= 0.9.2 && < 0.11,
tasty-silver < 3.4 ,
temporary >= 1.2.1 && < 1.4 ,
turtle < 1.6 ,
turtle < 1.7 ,
Default-Language: Haskell2010

Test-Suite doctest
Expand Down
3 changes: 3 additions & 0 deletions dhall/tests/Dhall/Test/Freeze.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{-# LANGUAGE OverloadedStrings #-}

-- FIXME: Re-enable deprecation warnings after removing support for turtle < 1.6.
{-# OPTIONS_GHC -Wno-deprecations #-}

module Dhall.Test.Freeze where

import Data.Text (Text)
Expand Down
18 changes: 10 additions & 8 deletions dhall/tests/Dhall/Test/Import.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeApplications #-}

-- FIXME: Re-enable deprecation warnings after removing support for turtle < 1.6.
{-# OPTIONS_GHC -Wno-deprecations #-}

module Dhall.Test.Import where

import Control.Exception (SomeException)
import Data.Foldable (fold)
import Data.Text (Text, isSuffixOf)
import Data.Void (Void)
import Filesystem.Path.CurrentOS (toText)
import Prelude hiding (FilePath)
import Test.Tasty (TestTree)
import Turtle (FilePath, (</>))
import Control.Exception (SomeException)
import Data.Foldable (fold)
import Data.Text (Text, isSuffixOf)
import Data.Void (Void)
import Prelude hiding (FilePath)
import Test.Tasty (TestTree)
import Turtle (FilePath, toText, (</>))

import qualified Control.Exception as Exception
import qualified Control.Monad as Monad
Expand Down

0 comments on commit 5d9f0cc

Please sign in to comment.