telescope-0.2.0: Astronomical Observations (FITS, ASDF, WCS, etc)
Safe HaskellNone
LanguageGHC2021

Telescope.Asdf.Core

Synopsis

Documentation

data Unit Source #

VOUnit: https://www.ivoa.net/documents/VOUnits/20231215/REC-VOUnits-1.1.html - Unrecognised units should be accepted by parsers, as long as they are parsed giving preference to the syntaxes and prefixes described here.

Instances

Instances details
Eq Unit Source # 
Instance details

Defined in Telescope.Asdf.Core

Methods

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

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

FromAsdf Unit Source # 
Instance details

Defined in Telescope.Asdf.Core

Methods

parseValue :: forall (es :: [Effect]). Parser :> es => Value -> Eff es Unit Source #

ToAsdf Unit Source # 
Instance details

Defined in Telescope.Asdf.Core

data Quantity Source #

Tag a value with a Unit

Constructors

Quantity 

Fields

Instances

Instances details
Generic Quantity Source # 
Instance details

Defined in Telescope.Asdf.Core

Associated Types

type Rep Quantity 
Instance details

Defined in Telescope.Asdf.Core

type Rep Quantity = D1 ('MetaData "Quantity" "Telescope.Asdf.Core" "telescope-0.2.0-inplace" 'False) (C1 ('MetaCons "Quantity" 'PrefixI 'True) (S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Unit) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Value)))

Methods

from :: Quantity -> Rep Quantity x #

to :: Rep Quantity x -> Quantity #

FromAsdf Quantity Source # 
Instance details

Defined in Telescope.Asdf.Core

Methods

parseValue :: forall (es :: [Effect]). Parser :> es => Value -> Eff es Quantity Source #

ToAsdf Quantity Source # 
Instance details

Defined in Telescope.Asdf.Core

type Rep Quantity Source # 
Instance details

Defined in Telescope.Asdf.Core

type Rep Quantity = D1 ('MetaData "Quantity" "Telescope.Asdf.Core" "telescope-0.2.0-inplace" 'False) (C1 ('MetaCons "Quantity" 'PrefixI 'True) (S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Unit) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Value)))

data Software Source #

Required Software node at the top-level

Constructors

Software 

Instances

Instances details
Generic Software Source # 
Instance details

Defined in Telescope.Asdf.Core

Associated Types

type Rep Software 
Instance details

Defined in Telescope.Asdf.Core

Methods

from :: Software -> Rep Software x #

to :: Rep Software x -> Software #

Show Software Source # 
Instance details

Defined in Telescope.Asdf.Core

Eq Software Source # 
Instance details

Defined in Telescope.Asdf.Core

FromAsdf Software Source # 
Instance details

Defined in Telescope.Asdf.Core

Methods

parseValue :: forall (es :: [Effect]). Parser :> es => Value -> Eff es Software Source #

ToAsdf Software Source # 
Instance details

Defined in Telescope.Asdf.Core

type Rep Software Source # 
Instance details

Defined in Telescope.Asdf.Core

data Asdf Source #

Root ASDF node

Constructors

Asdf 

Instances

Instances details
FromAsdf Asdf Source # 
Instance details

Defined in Telescope.Asdf.Core

Methods

parseValue :: forall (es :: [Effect]). Parser :> es => Value -> Eff es Asdf Source #

ToAsdf Asdf Source # 
Instance details

Defined in Telescope.Asdf.Core

toAsdfDoc :: forall a (es :: [Effect]). (ToAsdf a, Error AsdfError :> es) => a -> Eff es Asdf Source #

Convert any ToAsdf into a raw Asdf document

data History Source #

Constructors

History 

Instances

Instances details
Generic History Source # 
Instance details

Defined in Telescope.Asdf.Core

Associated Types

type Rep History 
Instance details

Defined in Telescope.Asdf.Core

type Rep History = D1 ('MetaData "History" "Telescope.Asdf.Core" "telescope-0.2.0-inplace" 'False) (C1 ('MetaCons "History" 'PrefixI 'True) (S1 ('MetaSel ('Just "extensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ExtensionMetadata])))

Methods

from :: History -> Rep History x #

to :: Rep History x -> History #

Show History Source # 
Instance details

Defined in Telescope.Asdf.Core

FromAsdf History Source # 
Instance details

Defined in Telescope.Asdf.Core

Methods

parseValue :: forall (es :: [Effect]). Parser :> es => Value -> Eff es History Source #

ToAsdf History Source # 
Instance details

Defined in Telescope.Asdf.Core

type Rep History Source # 
Instance details

Defined in Telescope.Asdf.Core

type Rep History = D1 ('MetaData "History" "Telescope.Asdf.Core" "telescope-0.2.0-inplace" 'False) (C1 ('MetaCons "History" 'PrefixI 'True) (S1 ('MetaSel ('Just "extensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ExtensionMetadata])))

data ExtensionMetadata Source #

Instances

Instances details
Generic ExtensionMetadata Source # 
Instance details

Defined in Telescope.Asdf.Core

Associated Types

type Rep ExtensionMetadata 
Instance details

Defined in Telescope.Asdf.Core

type Rep ExtensionMetadata = D1 ('MetaData "ExtensionMetadata" "Telescope.Asdf.Core" "telescope-0.2.0-inplace" 'False) (C1 ('MetaCons "ExtensionMetadata" 'PrefixI 'True) (S1 ('MetaSel ('Just "extension_class") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "software") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Software)))
Show ExtensionMetadata Source # 
Instance details

Defined in Telescope.Asdf.Core

FromAsdf ExtensionMetadata Source # 
Instance details

Defined in Telescope.Asdf.Core

Methods

parseValue :: forall (es :: [Effect]). Parser :> es => Value -> Eff es ExtensionMetadata Source #

ToAsdf ExtensionMetadata Source # 
Instance details

Defined in Telescope.Asdf.Core

type Rep ExtensionMetadata Source # 
Instance details

Defined in Telescope.Asdf.Core

type Rep ExtensionMetadata = D1 ('MetaData "ExtensionMetadata" "Telescope.Asdf.Core" "telescope-0.2.0-inplace" 'False) (C1 ('MetaCons "ExtensionMetadata" 'PrefixI 'True) (S1 ('MetaSel ('Just "extension_class") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "software") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Software)))