haskell-awk-1.0.1: Transform text from the command-line using Haskell expressions.

Safe HaskellNone

System.Console.Hawk.Runtime

Description

This is Hawk's runtime, it needs to be installed in order to evaluate Hawk expressions. The API may change at any time.

Documentation

c8pack :: String -> ByteString

sc8pack :: String -> ByteString

listMap :: (a -> b) -> [a] -> [b]

listMapWords :: ([a] -> b) -> [[a]] -> [b]

printRows

Arguments

:: forall a . Rows a 
=> Bool

if printRows will continue after errors

-> ByteString

rows delimiter

-> ByteString

columns delimiter

-> a

the value to print as rows

-> IO () 

printRow

Arguments

:: forall a . Row a 
=> Bool

if printRow should continue after errors

-> ByteString

the column delimiter

-> a

the value to print

-> IO () 

parseRows :: ByteString -> ByteString -> [ByteString]

parseWords :: ByteString -> ByteString -> ByteString -> [[ByteString]]

showRows

Arguments

:: forall a . Rows a 
=> ByteString

rows delimiter

-> ByteString

columns delimiter

-> a

value to print

-> ByteString 

runExpr

Arguments

:: Maybe FilePath

if the input is a file

-> (Maybe FilePath -> IO ByteString)

input reader

-> (ByteString -> ByteString) 
-> (ByteString -> IO ()) 
-> IO ()