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

Telescope.Asdf.Node

Synopsis

Documentation

newtype SchemaTag Source #

Specify a schema using schema from ToAsdf

Constructors

SchemaTag (Maybe Text) 

Instances

Instances details
IsString SchemaTag Source # 
Instance details

Defined in Telescope.Asdf.Node

Monoid SchemaTag Source # 
Instance details

Defined in Telescope.Asdf.Node

Semigroup SchemaTag Source # 
Instance details

Defined in Telescope.Asdf.Node

Show SchemaTag Source # 
Instance details

Defined in Telescope.Asdf.Node

Eq SchemaTag Source # 
Instance details

Defined in Telescope.Asdf.Node

data Node Source #

A Node is a Value with an optional SchemaTag and Anchor

Constructors

Node 

Instances

Instances details
IsString Node Source # 
Instance details

Defined in Telescope.Asdf.Node

Methods

fromString :: String -> Node #

Show Node Source # 
Instance details

Defined in Telescope.Asdf.Node

Methods

showsPrec :: Int -> Node -> ShowS #

show :: Node -> String #

showList :: [Node] -> ShowS #

Eq Node Source # 
Instance details

Defined in Telescope.Asdf.Node

Methods

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

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

FromAsdf Node Source # 
Instance details

Defined in Telescope.Asdf.Class

Methods

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

ToAsdf Node Source # 
Instance details

Defined in Telescope.Asdf.Class

data Value Source #

All allowed node values. We can't use Aeson's Value, because it doesn't support tags, binary data, or references

Instances

Instances details
IsString Value Source # 
Instance details

Defined in Telescope.Asdf.Node

Methods

fromString :: String -> Value #

Monoid Value Source # 
Instance details

Defined in Telescope.Asdf.Node

Methods

mempty :: Value #

mappend :: Value -> Value -> Value #

mconcat :: [Value] -> Value #

Semigroup Value Source # 
Instance details

Defined in Telescope.Asdf.Node

Methods

(<>) :: Value -> Value -> Value #

sconcat :: NonEmpty Value -> Value #

stimes :: Integral b => b -> Value -> Value #

Show Value Source # 
Instance details

Defined in Telescope.Asdf.Node

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

Eq Value Source # 
Instance details

Defined in Telescope.Asdf.Node

Methods

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

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

FromAsdf Value Source # 
Instance details

Defined in Telescope.Asdf.Class

Methods

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

ToAsdf Value Source # 
Instance details

Defined in Telescope.Asdf.Class

type Key = Text Source #

type Object = [(Key, Node)] Source #

fromValue :: Value -> Node Source #

Makes a node from a value

newtype Tree Source #

Root Object with all anchors resolved

Constructors

Tree Object 

Instances

Instances details
Monoid Tree Source # 
Instance details

Defined in Telescope.Asdf.Node

Methods

mempty :: Tree #

mappend :: Tree -> Tree -> Tree #

mconcat :: [Tree] -> Tree #

Semigroup Tree Source # 
Instance details

Defined in Telescope.Asdf.Node

Methods

(<>) :: Tree -> Tree -> Tree #

sconcat :: NonEmpty Tree -> Tree #

stimes :: Integral b => b -> Tree -> Tree #

Show Tree Source # 
Instance details

Defined in Telescope.Asdf.Node

Methods

showsPrec :: Int -> Tree -> ShowS #

show :: Tree -> String #

showList :: [Tree] -> ShowS #

FromAsdf Tree Source # 
Instance details

Defined in Telescope.Asdf.Class

Methods

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

ToAsdf Tree Source # 
Instance details

Defined in Telescope.Asdf.Class

data JSONReference Source #

Constructors

JSONReference 

Fields

Instances

Instances details
Show JSONReference Source # 
Instance details

Defined in Telescope.Asdf.Node

Eq JSONReference Source # 
Instance details

Defined in Telescope.Asdf.Node

newtype JSONPointer Source #

Constructors

JSONPointer Path 

Instances

Instances details
Show JSONPointer Source # 
Instance details

Defined in Telescope.Asdf.Node

Eq JSONPointer Source # 
Instance details

Defined in Telescope.Asdf.Node

newtype Anchor Source #

Constructors

Anchor 

Fields

Instances

Instances details
IsString Anchor Source # 
Instance details

Defined in Telescope.Asdf.Node

Methods

fromString :: String -> Anchor #

Show Anchor Source # 
Instance details

Defined in Telescope.Asdf.Node

Eq Anchor Source # 
Instance details

Defined in Telescope.Asdf.Node

Methods

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

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

newtype Anchors Source #

Constructors

Anchors [(Anchor, Value)] 

Instances

Instances details
Monoid Anchors Source # 
Instance details

Defined in Telescope.Asdf.Node

Semigroup Anchors Source # 
Instance details

Defined in Telescope.Asdf.Node

Show Anchors Source # 
Instance details

Defined in Telescope.Asdf.Node

Eq Anchors Source # 
Instance details

Defined in Telescope.Asdf.Node

Methods

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

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