Use infix notation as hlint suggests.
Factor out date parsing.
Add checkoutSnapshot function.
Make checkouting the date workning.