Skip to content

Commit

Permalink
screened 2024-06-03 07:42:37+00:00
Browse files Browse the repository at this point in the history
  • Loading branch information
hsenag committed Jun 3, 2024
1 parent 9da2575 commit 7eafc8a
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 31 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ jobs:
- 9.4.8
- 9.6.4
- 9.8.2
- 9.10.1
cabal:
- '3.10'
env:
builddocs: ${{ matrix.ghc == '9.4.5' }}
runtests: ${{ matrix.ghc == '8.4.4' || matrix.ghc == '9.10.1' }}
runtests: ${{ matrix.ghc == '8.4.4' || matrix.ghc == '9.8.2' }}
tests-to-run: # e.g. -t=EXAMPLE
testcmd: cabal run -- darcs-test -j=6 -f=123 -i=yn -c=yn --hide
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cabal update && cabal install darcs
```

with a recent cabal (version 3.2 or later is recommended). Any version of
ghc from 8.2 up to 9.10 should work.
ghc from 8.4 up to 9.8 should work.

From inside a clone or a source dist, use

Expand Down
4 changes: 0 additions & 4 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
packages: .

allow-newer: serialise:base
allow-newer: cborg:base
allow-newer: haskeline:base
4 changes: 2 additions & 2 deletions darcs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ flag warn-as-error
-- ----------------------------------------------------------------------

custom-setup
setup-depends: base >= 4.10 && < 4.21,
setup-depends: base >= 4.11 && < 4.20,
Cabal >= 2.4 && < 3.11,
process >= 1.2.3.0 && < 1.7,
filepath >= 1.4.1 && < 1.5.0.0,
Expand Down Expand Up @@ -412,7 +412,7 @@ Library
else
build-depends: unix >= 2.7.1.0 && < 2.9

build-depends: base >= 4.10 && < 4.21,
build-depends: base >= 4.11 && < 4.20,
safe >= 0.3.20 && < 0.4,
stm >= 2.1 && < 2.6,
binary >= 0.5 && < 0.11,
Expand Down
2 changes: 1 addition & 1 deletion src/Darcs/Patch/Annotate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ import qualified Darcs.Patch.Prim.FileUUID as FileUUID

import Darcs.Patch.Annotate.Class
import Darcs.Patch.Effect ( Effect(..) )
import Darcs.Patch.FromPrim ( PrimOf )
import Darcs.Patch.FromPrim ( PrimOf(..) )
import Darcs.Patch.Info ( displayPatchInfo, piAuthor, makePatchname )
import Darcs.Patch.Invert ( Invert, invert )
import Darcs.Patch.Named ( patchcontents )
Expand Down
7 changes: 1 addition & 6 deletions src/Darcs/Patch/RepoPatch.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE CPP #-}
module Darcs.Patch.RepoPatch
( RepoPatch
, AnnotateRP
Expand All @@ -24,18 +23,14 @@ module Darcs.Patch.RepoPatch
, Unwind(..)
) where

#if MIN_VERSION_base(4,20,0)
import Darcs.Prelude
#endif

import Darcs.Patch.Annotate ( AnnotateRP )
import Darcs.Patch.Apply ( Apply(..) )
import Darcs.Patch.Commute ( Commute(..) )
import Darcs.Patch.Conflict ( Conflict(..) )
import Darcs.Patch.Effect ( Effect(..) )
import Darcs.Patch.FileHunk ( IsHunk(..) )
import Darcs.Patch.Format ( PatchListFormat(..) )
import Darcs.Patch.FromPrim ( PrimPatchBase(..), PrimOf, FromPrim(..), ToPrim(..) )
import Darcs.Patch.FromPrim ( PrimPatchBase(..), PrimOf(..), FromPrim(..), ToPrim(..) )
import Darcs.Patch.Inspect ( PatchInspect(..) )
import Darcs.Patch.Merge ( Merge(..) )
import Darcs.Patch.Read ( ReadPatch(..) )
Expand Down
13 changes: 0 additions & 13 deletions src/Darcs/Prelude.hs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ it to the Prelude import.
module Darcs.Prelude
( module Prelude
, module Control.Applicative
, module Data.List
, module Data.Monoid
, Semigroup(..)
, module Data.Traversable
) where

Expand All @@ -43,11 +41,6 @@ import Prelude hiding
,
-- because it's in the new Prelude but only in Data.Monoid in older GHCs
Monoid(..)
#if MIN_VERSION_base(4,11,0)
,
-- because it's in the new Prelude but only in Data.Semigroup in older GHCs
Semigroup(..)
#endif
,
-- because it's in the new Prelude but only in Data.Traversable in older GHCs
traverse
Expand All @@ -60,14 +53,8 @@ import Prelude hiding
,
-- used by various code for no particularly good reason
lookup, pred
#if MIN_VERSION_base(4,20,0)
, -- because it's in the new Prelude but only in Data.List in older GHCs
foldl'
#endif
)

import Control.Applicative ( Applicative(..), (<$>), (<*>) )
import Data.List ( foldl' )
import Data.Monoid ( Monoid(..) )
import Data.Semigroup ( Semigroup(..) )
import Data.Traversable ( traverse )
1 change: 1 addition & 0 deletions src/Darcs/Repository/Hashed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module Darcs.Repository.Hashed
import Darcs.Prelude

import Control.Monad ( unless, when )
import Data.List ( foldl' )
import System.Directory
( copyFile
, createDirectoryIfMissing
Expand Down
2 changes: 2 additions & 0 deletions src/Darcs/Repository/PatchIndex.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import System.Directory
, removeDirectoryRecursive
, removeFile
, renameDirectory
, copyPermissions
)
import System.FilePath( (</>) )
import System.IO ( openFile, IOMode(WriteMode), hClose )
Expand Down Expand Up @@ -526,6 +527,7 @@ storePatchIndex cdir inv_hash (PatchIndex pids fidspans fpspans infom) = do
debugMessage "Patch index created"
return tmpdir
removeDirectoryRecursive cdir `catch` \(_ :: IOError) -> return ()
copyPermissions darcsdir tmpdir
renameDirectory tmpdir cdir

decodeFile :: Binary a => FilePath -> IO a
Expand Down
2 changes: 0 additions & 2 deletions src/Darcs/UI/Commands/ShowAuthors.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
-- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-- Boston, MA 02110-1301, USA.

{-# OPTIONS_GHC -Wno-unrecognised-warning-flags #-}
{-# OPTIONS_GHC -Wno-x-data-list-nonempty-unzip #-}
module Darcs.UI.Commands.ShowAuthors
( showAuthors, Spelling, compiledAuthorSpellings, canonizeAuthor, rankAuthors
) where
Expand Down

0 comments on commit 7eafc8a

Please sign in to comment.