gedcom-0.2.0.0: Parser for the GEDCOM genealogy file format.

Copyright(c) Callum Lowcay 2017
LicenseBSD3
Maintainercwslowcay@gmail.com
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Data.Gedcom.Internal.CoreTypes

Description

 

Synopsis

Documentation

data GDRefError Source #

An error arising from dereferencing a GDRef

Constructors

RefNotPresent GDXRefID

The referred structure doesn't exist.

WrongRefType TypeRep TypeRep

Dereferenced structure had the wrong type

data GDError Source #

A parse error.

Constructors

LineFormatError Text

A badly formatted GEDCOM line

UnexpectedRef Text

A reference where a reference wasn't allowed

RequiredRef Text

Missing a reference where a reference was required

DuplicateRef Text

Two targets for the same reference

FormatError Text

A badly formatted field

TagError Text

The wrong tag

data GDRef a Source #

A reference to another structure

Constructors

GDStructure a

Already dereferenced.

GDXRef GDXRefID

The GDXRefID to look up

Instances

Eq a => Eq (GDRef a) Source # 

Methods

(==) :: GDRef a -> GDRef a -> Bool #

(/=) :: GDRef a -> GDRef a -> Bool #

Show a => Show (GDRef a) Source # 

Methods

showsPrec :: Int -> GDRef a -> ShowS #

show :: GDRef a -> String #

showList :: [GDRef a] -> ShowS #

data GDRoot Source #

A raw GEDCOM syntax tree

Constructors

GDRoot [GDTree] 

Instances

data GDTree Source #

A GEDCOM subtree

Constructors

GDTree GDLine [GDTree] 

Instances

data GDLine Source #

A GEDCOM line

Instances

newtype GDEscape Source #

An escape sequence

Constructors

GDEscape Text 

newtype GDTag Source #

The tag field

Constructors

GDTag Text 

Instances

Eq GDTag Source # 

Methods

(==) :: GDTag -> GDTag -> Bool #

(/=) :: GDTag -> GDTag -> Bool #

Ord GDTag Source # 

Methods

compare :: GDTag -> GDTag -> Ordering #

(<) :: GDTag -> GDTag -> Bool #

(<=) :: GDTag -> GDTag -> Bool #

(>) :: GDTag -> GDTag -> Bool #

(>=) :: GDTag -> GDTag -> Bool #

max :: GDTag -> GDTag -> GDTag #

min :: GDTag -> GDTag -> GDTag #

Show GDTag Source # 

Methods

showsPrec :: Int -> GDTag -> ShowS #

show :: GDTag -> String #

showList :: [GDTag] -> ShowS #

gdLineData :: GDLineItem -> [(Maybe GDEscape, Text)] Source #

Extract the line text

gdTrimLineItem :: GDLineItem -> GDLineItem Source #

Trim white space off the start an end of a GEDCOM line text.

gdIgnoreEscapes :: [(Maybe GDEscape, Text)] -> Text Source #

Ignore escape sequences

gdFilterEscapes :: [GDEscape] -> [(Maybe GDEscape, Text)] -> [(Maybe GDEscape, Text)] Source #

Ignore certain escape sequences