blob: 994f4311d435cff31b392cdf9479a1f8965d3689 (
plain)
1
2
3
4
5
6
7
8
9
|
module Example.Format where
import System.IO.Unsafe
import System.Process
{-# NOINLINE formatter #-}
formatter :: String -> String
formatter str = unsafePerformIO $ readProcess "hindent" ["--line-length", "100"] str
|