srt 0.1.1.0 → 0.1.2.0
raw patch · 3 files changed
+27/−12 lines, 3 filesdep ~textPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: text
API changes (from Hackage documentation)
- Media.Subtitles.SRT: data SRT
+ Media.Subtitles.SRT: newtype SRT
Files
- ChangeLog.md +6/−1
- src/Media/Subtitles/SRT.hs +12/−7
- srt.cabal +9/−4
ChangeLog.md view
@@ -1,5 +1,10 @@ # Changelog for srt +## v0.1.2.0++* Change SRT to newtype.+* Enable DerivingStrategies and StandaloneKindSignatures.+ ## v0.1.1.0 -Export SRT datatypes.+* Export SRT datatypes.
src/Media/Subtitles/SRT.hs view
@@ -10,19 +10,24 @@ ) where -import Data.Text-import Media.Timestamp+import Data.Kind (Type)+import Data.Text (Text)+import Media.Timestamp (Range) -- | Data type for a single line in SRT.+--+-- @since 0.1.0.0+type Line :: Type data Line = Line- { index :: Int,- range :: Range,+ { index :: Int,+ range :: Range, dialog :: Text }- deriving (Eq, Show, Ord)+ deriving stock (Eq, Show, Ord) -- | SRT data type. -- -- @since 0.1.0.0-data SRT = SRT {unSRT :: [Line]}- deriving (Eq, Show)+type SRT :: Type+newtype SRT = SRT {unSRT :: [Line]}+ deriving stock (Eq, Show)
srt.cabal view
@@ -1,12 +1,13 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.34.4.+-- This file has been generated from package.yaml by hpack version 0.34.7. -- -- see: https://github.com/sol/hpack name: srt-version: 0.1.1.0+version: 0.1.2.0 synopsis: The data type for SRT files.+description: The data type for SRT files. https://en.wikipedia.org/wiki/SubRip category: Media author: Daniel Firth maintainer: dan.firth@homotopic.tech@@ -20,7 +21,7 @@ source-repository head type: git- location: https://gitlab.com/homotopic-tech/srt+ location: https://gitlab.homotopic.tech/haskell/srt library exposed-modules:@@ -29,8 +30,12 @@ Paths_srt hs-source-dirs: src+ default-extensions:+ DerivingStrategies+ StandaloneKindSignatures+ ghc-options: -Weverything -Wno-all-missed-specialisations -Wno-implicit-prelude -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -Wno-safe -Wno-unsafe build-depends: base >=4.7 && <5 , simple-media-timestamp >=0.1.0.0 && <0.3- , text >=1.0 && <1.3+ , text >=1.0 && <2.1 default-language: Haskell2010