blob: 9ab9f6e6e671b925b5466d95363e9f42fcbe1229 (
plain)
1
2
3
4
5
6
7
8
|
{-# LANGUAGE OverloadedStrings #-}
import Ar
-- obtained from echo -n \0 > x.o && ar -q b.a x.o && cat b.a
archive = "!<arch>\nx.o/ 0 0 0 644 1 \
\`\n0\nx.o/ 0 0 0 644 1 `\n0\n"
main = print (parseAr archive)
|