bin/hledger -f - print
<<<
P 2009/1/1 p 0.5h
2009/1/1 t
a 1p
b
>>>
2009/01/01 t
a 1p @ 0.5h
b -1p @ 0.5h
>>>2