subtitleParser-0.2: A parser for .srt and .sub files

Portabilityunknown
Maintainerruben.astud@gmail.com
Safe HaskellSafe-Infered

Text.Subtitles.SRT.Datatypes

Contents

Description

ADT for .srt files. Also serves as a place to provide instance declarations for the ADTs.

Synopsis

Re-exported datatypes.

module Data.Text

Datatypes

data Line Source

The core of the parser. each one of the constructor representing one part of the Line

Constructors

Line 

Fields

index :: Int
 
range :: Range
 
dialog :: Text
 

Instances

data Range Source

Constructors

Range 

Fields

from :: Time
 
to :: Time
 

Instances

data Time Source

Constructors

Time 

Fields

hour :: Int
 
minutes :: Int
 
seconds :: Int
 
frame :: Int
 

Instances