Skip to content

Commit

Permalink
Expose internal modules
Browse files Browse the repository at this point in the history
  • Loading branch information
chpatrick authored and mrkkrp committed Jun 19, 2024
1 parent 63779b1 commit 708a491
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 16 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## Zip 2.1.0

* Exposed `Codec.Archive.Zip.Internal` and `Codec.Archive.Zip.Internal.Type`
modules. [PR 115](https://github.com/mrkkrp/zip/pull/115).

## Zip 2.0.1

* Fixed corruption of large entries when zip64 is used. [Issue
Expand Down
2 changes: 1 addition & 1 deletion Codec/Archive/Zip.hs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ module Codec.Archive.Zip
where

import Codec.Archive.Zip.Internal qualified as I
import Codec.Archive.Zip.Type
import Codec.Archive.Zip.Internal.Type
import Conduit (PrimMonad)
import Control.Monad
import Control.Monad.Base (MonadBase (..))
Expand Down
12 changes: 2 additions & 10 deletions Codec/Archive/Zip/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,10 @@
-- Portability : portable
--
-- Low-level, non-public types and operations.
module Codec.Archive.Zip.Internal
( PendingAction (..),
targetEntry,
scanArchive,
sourceEntry,
crc32Sink,
commit,
)
where
module Codec.Archive.Zip.Internal where

import Codec.Archive.Zip.CP437 (decodeCP437)
import Codec.Archive.Zip.Type
import Codec.Archive.Zip.Internal.Type
import Conduit (PrimMonad)
import Control.Applicative (many, (<|>))
import Control.Exception (bracketOnError, catchJust)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{-# LANGUAGE DeriveDataTypeable #-}

-- |
-- Module : Codec.Archive.Zip.Type
-- Module : Codec.Archive.Zip.Internal.Type
-- Copyright : © 2016–present Mark Karpov
-- License : BSD 3 clause
--
Expand All @@ -11,7 +11,7 @@
-- Portability : portable
--
-- Types used by the package.
module Codec.Archive.Zip.Type
module Codec.Archive.Zip.Internal.Type
( -- * Entry selector
EntrySelector,
mkEntrySelector,
Expand Down
4 changes: 1 addition & 3 deletions zip.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ library
Codec.Archive.Zip
Codec.Archive.Zip.CP437
Codec.Archive.Zip.Unix

other-modules:
Codec.Archive.Zip.Internal
Codec.Archive.Zip.Type
Codec.Archive.Zip.Internal.Type

default-language: GHC2021
build-depends:
Expand Down

0 comments on commit 708a491

Please sign in to comment.