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

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

Text.Subtitles.Datatypes

Contents

Description

Common ADT for the project. Also serves as a place to provide instance declarations for the ADTs.

Synopsis

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
 
subs :: 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