Telescope.Data.Axes
type Axis = Int Source #
newtype Axes (a :: Major) Source #
Constructors
Fields
Defined in Telescope.Data.Axes
Associated Types
Methods
fromList :: [Item (Axes 'Row)] -> Axes 'Row #
fromListN :: Int -> [Item (Axes 'Row)] -> Axes 'Row #
toList :: Axes 'Row -> [Item (Axes 'Row)] #
showsPrec :: Int -> Axes a -> ShowS #
show :: Axes a -> String #
showList :: [Axes a] -> ShowS #
(==) :: Axes a -> Axes a -> Bool #
(/=) :: Axes a -> Axes a -> Bool #
Defined in Telescope.Asdf.Class
toValue :: Axes 'Row -> Value Source #
schema :: Axes 'Row -> SchemaTag Source #
anchor :: Axes 'Row -> Maybe Anchor Source #
toNode :: Axes 'Row -> Node Source #
data Major Source #
axesRowMajor :: [Axis] -> Axes 'Row Source #
axesColumnMajor :: [Axis] -> Axes 'Column Source #
toRowMajor :: Axes 'Column -> Axes 'Row Source #
toColumnMajor :: Axes 'Row -> Axes 'Column Source #
totalItems :: forall (a :: Major). Axes a -> Int Source #
class AxisOrder (ax :: k) where Source #
Specify which numbered axis a type represents
data X instance AxisOrder X where axisN = 1 data Y instance AxisOrder Y where axisN = 2
axisN :: Natural Source #