| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Data.Repa.Flow.Auto.Debug
- more :: (Flow a, Nicer a) => Int -> Sources a -> IO (Maybe [Nice a])
- more' :: (Flow a, Nicer a) => Int -> Int -> Sources a -> IO (Maybe [Nice a])
- moret :: (Flow a, Nicer [a], Presentable (Nice [a])) => Int -> Sources a -> IO ()
- moret' :: (Flow a, Nicer [a], Presentable (Nice [a])) => Int -> Int -> Sources a -> IO ()
- morer :: Flow a => Int -> Sources a -> IO (Maybe [a])
- morer' :: Flow a => Int -> Int -> Sources a -> IO (Maybe [a])
- class Nicer a where
- class Presentable a where
More
Arguments
| :: (Flow a, Nicer a) | |
| => Int | Index of source in bundle. |
| -> Sources a | Bundle of sources. |
| -> IO (Maybe [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' :: (Flow a, Nicer a) => Int -> Int -> Sources a -> IO (Maybe [Nice a]) Source #
Like more but also specify now many elements you want.
More (tabular)
Arguments
| :: (Flow a, Nicer [a], Presentable (Nice [a])) | |
| => Int | Index of source in bundle. |
| -> Sources a | Bundle of sources. |
| -> IO () |
Like more, but print results in a tabular form to the console.
moret' :: (Flow a, Nicer [a], Presentable (Nice [a])) => Int -> Int -> Sources 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' :: Flow a => Int -> Int -> Sources a -> IO (Maybe [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
Strdata 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.
Instances
| 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.
Instances
| 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) | |