Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- data NDArrayData = NDArrayData {}
- class FromNDArray a where
- fromNDArray :: forall (es :: [Effect]). Parser :> es => NDArrayData -> Eff es a
- class ToNDArray a where
- toNDArray :: a -> NDArrayData
- data DataType
- class IsDataType (a :: k) where
- parseGet :: forall (es :: [Effect]) a. Parser :> es => Get a -> ByteString -> Eff es a
- ndArrayPut :: IsDataType a => (a -> Axes 'Row) -> (a -> Put) -> a -> NDArrayData
- ndArrayMassiv :: (IsDataType a, BinaryValue a, Prim a, AxesIndex ix, PutArray ix) => Array D ix a -> NDArrayData
- parseMassiv :: forall a ix (es :: [Effect]). (BinaryValue a, AxesIndex ix, Parser :> es) => NDArrayData -> Eff es (Array D ix a)
- parseNDArray :: forall a (es :: [Effect]). (FromNDArray a, Parser :> es) => Value -> Eff es a
- data ByteOrder
- getUcs4 :: ByteOrder -> Int -> Get Text
- putUcs4 :: Int -> Text -> Put
- data Parser (a :: Type -> Type) b
Documentation
data NDArrayData Source #
In-tree representation of an NDArray. You can parse a file as this and get it back. Not really what we want though but in haskell we can't easily just parse a multi-dimensional array we could do a simpler representation. Using an ADT
Instances
Show NDArrayData Source # | |
Defined in Telescope.Asdf.NDArray.Types showsPrec :: Int -> NDArrayData -> ShowS # show :: NDArrayData -> String # showList :: [NDArrayData] -> ShowS # | |
Eq NDArrayData Source # | |
Defined in Telescope.Asdf.NDArray.Types (==) :: NDArrayData -> NDArrayData -> Bool # (/=) :: NDArrayData -> NDArrayData -> Bool # | |
FromAsdf NDArrayData Source # | |
Defined in Telescope.Asdf.Class parseValue :: forall (es :: [Effect]). Parser :> es => Value -> Eff es NDArrayData Source # | |
ToAsdf NDArrayData Source # | |
Defined in Telescope.Asdf.Class |
class FromNDArray a where Source #
Convert an NDArrayData
into a type
https:/asdf-standard.readthedocs.ioenlatestgeneratedstsci.eduasdfcorendarray-1.1.0.html
fromNDArray :: forall (es :: [Effect]). Parser :> es => NDArrayData -> Eff es a Source #
Instances
FromNDArray [Text] Source # | |
Defined in Telescope.Asdf.NDArray fromNDArray :: forall (es :: [Effect]). Parser :> es => NDArrayData -> Eff es [Text] Source # | |
BinaryValue a => FromNDArray [[a]] Source # | |
Defined in Telescope.Asdf.NDArray fromNDArray :: forall (es :: [Effect]). Parser :> es => NDArrayData -> Eff es [[a]] Source # | |
BinaryValue a => FromNDArray [a] Source # | |
Defined in Telescope.Asdf.NDArray fromNDArray :: forall (es :: [Effect]). Parser :> es => NDArrayData -> Eff es [a] Source # | |
(BinaryValue a, Prim a, AxesIndex ix) => FromNDArray (Array D ix a) Source # | |
Defined in Telescope.Asdf.NDArray fromNDArray :: forall (es :: [Effect]). Parser :> es => NDArrayData -> Eff es (Array D ix a) Source # |
class ToNDArray a where Source #
Convert a type to an NDArrayData
https:/asdf-standard.readthedocs.ioenlatestgeneratedstsci.eduasdfcorendarray-1.1.0.html
toNDArray :: a -> NDArrayData Source #
Instances
(BinaryValue a, IsDataType a) => ToNDArray [[a]] Source # | |
Defined in Telescope.Asdf.NDArray toNDArray :: [[a]] -> NDArrayData Source # | |
(BinaryValue a, IsDataType a) => ToNDArray [a] Source # | |
Defined in Telescope.Asdf.NDArray toNDArray :: [a] -> NDArrayData Source # | |
(BinaryValue a, IsDataType a, Prim a, AxesIndex ix, PutArray ix) => ToNDArray (Array D ix a) Source # | |
Defined in Telescope.Asdf.NDArray |
class IsDataType (a :: k) where Source #
Instances
IsDataType 'Int8 Source # | |
Defined in Telescope.Asdf.NDArray.Types | |
IsDataType Int16 Source # | |
Defined in Telescope.Asdf.NDArray.Types | |
IsDataType Int32 Source # | |
Defined in Telescope.Asdf.NDArray.Types | |
IsDataType Int64 Source # | |
Defined in Telescope.Asdf.NDArray.Types | |
IsDataType Double Source # | |
Defined in Telescope.Asdf.NDArray.Types | |
IsDataType Float Source # | |
Defined in Telescope.Asdf.NDArray.Types | |
IsDataType a => IsDataType ([a] :: Type) Source # | |
Defined in Telescope.Asdf.NDArray.Types |
ndArrayPut :: IsDataType a => (a -> Axes 'Row) -> (a -> Put) -> a -> NDArrayData Source #
ndArrayMassiv :: (IsDataType a, BinaryValue a, Prim a, AxesIndex ix, PutArray ix) => Array D ix a -> NDArrayData Source #
parseMassiv :: forall a ix (es :: [Effect]). (BinaryValue a, AxesIndex ix, Parser :> es) => NDArrayData -> Eff es (Array D ix a) Source #
parseNDArray :: forall a (es :: [Effect]). (FromNDArray a, Parser :> es) => Value -> Eff es a Source #
Byte ordering.
BigEndian | most-significant-byte occurs in lowest address. |
LittleEndian | least-significant-byte occurs in lowest address. |
Instances
Bounded ByteOrder | Since: base-4.11.0.0 |
Enum ByteOrder | Since: base-4.11.0.0 |
Defined in GHC.ByteOrder succ :: ByteOrder -> ByteOrder # pred :: ByteOrder -> ByteOrder # fromEnum :: ByteOrder -> Int # enumFrom :: ByteOrder -> [ByteOrder] # enumFromThen :: ByteOrder -> ByteOrder -> [ByteOrder] # enumFromTo :: ByteOrder -> ByteOrder -> [ByteOrder] # enumFromThenTo :: ByteOrder -> ByteOrder -> ByteOrder -> [ByteOrder] # | |
Generic ByteOrder | |
Defined in GHC.ByteOrder | |
Read ByteOrder | Since: base-4.11.0.0 |
Show ByteOrder | Since: base-4.11.0.0 |
Eq ByteOrder | Since: base-4.11.0.0 |
Ord ByteOrder | Since: base-4.11.0.0 |
Defined in GHC.ByteOrder | |
FromAsdf ByteOrder Source # | |
Defined in Telescope.Asdf.Class | |
ToAsdf ByteOrder Source # | |
type Rep ByteOrder | Since: base-4.15.0.0 |
data Parser (a :: Type -> Type) b Source #
Instances
type DispatchOf Parser Source # | |
Defined in Telescope.Data.Parser |