Safe Haskell | None |
---|---|
Language | Haskell98 |
- more :: (States i IO, Nicer a) => i -> Sources i IO a -> IO [Nice a]
- more' :: (States i IO, Nicer a) => i -> Int -> Sources i IO a -> IO [Nice a]
- moret :: (States i IO, Nicer [a], Presentable (Nice [a])) => i -> Sources i IO a -> IO ()
- moret' :: (States i IO, Nicer [a], Presentable (Nice [a])) => i -> Int -> Sources i IO a -> IO ()
- morer :: States i IO => i -> Sources i IO a -> IO [a]
- morer' :: States i IO => i -> Int -> Sources i IO a -> IO [a]
- class Nicer a where
- class Presentable a where
More
:: (States i IO, Nicer a) | |
=> i | Index of source in bundle. |
-> Sources i IO a | Bundle of sources. |
-> IO [Nice a] |
Given a source index and a length, pull enough chunks from the source to build a list of the requested length, and discard the remaining elements in the final chunk.
- This function is intended for interactive debugging.
If you want to retain the rest of the final chunk then use
head_i
.
more' :: (States i IO, Nicer a) => i -> Int -> Sources i IO a -> IO [Nice a] Source #
Like more
but also specify now many elements you want.
More (tabular)
:: (States i IO, Nicer [a], Presentable (Nice [a])) | |
=> i | Index of source in bundle. |
-> Sources i IO a | Bundle of sources. |
-> IO () |
Like more
, but print results in a tabular form to the console.
moret' :: (States i IO, Nicer [a], Presentable (Nice [a])) => i -> Int -> Sources i IO a -> IO () Source #
Like more'
, but print results in tabular form to the console.
More (raw)
Like more
, but show elements in their raw format.
morer' :: States i IO => i -> Int -> Sources i IO a -> IO [a] Source #
Like more'
, but show elements in their raw format.
Nicer
Convert some value to a nice form.
In particular:
- Nested Arrays are converted to nested lists, so that they are easier to work with on the ghci console.
- Lists of characters are wrapped into the
Str
data type, so that they can be pretty printed differently by follow-on processing.
As ghci automatically pretty prints lists, using nice
is more
fun than trying to show
the raw Repa array representations.
Nicer Char | |
Nicer Double | |
Nicer Float | |
Nicer Int | |
Nicer Int8 | |
Nicer Int16 | |
Nicer Int32 | |
Nicer Int64 | |
Nicer Word | |
Nicer Word8 | |
Nicer Word16 | |
Nicer Word32 | |
Nicer Word64 | |
Nicer () | |
Nicer Date32 | |
Nicer [Char] | |
Nicer [Double] | |
Nicer [Float] | |
Nicer [Int] | |
Nicer [Int8] | |
Nicer [Int16] | |
Nicer [Int32] | |
Nicer [Int64] | |
Nicer [a] => Nicer [[a]] | |
Nicer a => Nicer [Maybe a] | |
Nicer [Word8] | |
Nicer [Word16] | |
Nicer [Word32] | |
Nicer [Word64] | |
(Nicer a, Nicer b) => Nicer [(a, b)] | |
(Nicer a, Nicer b) => Nicer [(:*:) a b] | |
(Bulk l a, Nicer [a]) => Nicer [Array l a] | |
Nicer a => Nicer (Maybe a) | |
(Nicer a, Nicer b) => Nicer (a, b) | |
(Nicer a, Nicer b) => Nicer ((:*:) a b) | |
(Bulk l a, Nicer [a]) => Nicer (Array l a) | |
class Presentable a where #
Convert some value to a form presentable to the user.
Like show
but we allow the nesting structure to be preserved
so it can be displayed in tabular format.
Presentable Char | |
Presentable Double | |
Presentable Float | |
Presentable Int | |
Presentable Word8 | |
Presentable Word16 | |
Presentable Word32 | |
Presentable Word64 | |
Presentable () | |
Presentable Str | |
Presentable Tok | |
Presentable Date32 | |
Presentable a => Presentable [a] | |
(Presentable a, Presentable b) => Presentable (a, b) | |
(Presentable a, Presentable b) => Presentable ((:*:) a b) | |
(Presentable a, Presentable b, Presentable c) => Presentable (a, b, c) | |
(Presentable a, Presentable b, Presentable c, Presentable d) => Presentable (a, b, c, d) | |
(Presentable a, Presentable b, Presentable c, Presentable d, Presentable e) => Presentable (a, b, c, d, e) | |