find --json
This commit is contained in:
parent
7227dd8f21
commit
fdf02986cf
4 changed files with 28 additions and 10 deletions
|
@ -9,7 +9,8 @@ module Messages.JSON (
|
|||
start,
|
||||
end,
|
||||
note,
|
||||
add
|
||||
add,
|
||||
complete
|
||||
) where
|
||||
|
||||
import Text.JSON
|
||||
|
@ -31,3 +32,9 @@ note s = add [("note", s)]
|
|||
|
||||
add :: JSON a => [(String, a)] -> IO ()
|
||||
add v = putStr $ Stream.add v
|
||||
|
||||
complete :: JSON a => [(String, a)] -> IO ()
|
||||
complete v = putStr $ concat
|
||||
[ Stream.start v
|
||||
, Stream.end
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue