#!/bin/sh
# Haskell library incompatibility in StdPkl.hs
sed '/^write_integral ::/{i\
toInt :: Integral a => a -> Int\
toInt = fromIntegral\
\
fromInt :: Num a => Int -> a\
fromInt = fromIntegral\

}' "$@"