summaryrefslogtreecommitdiff
path: root/src/Example
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-10-01 23:18:15 +0200
committerTom Smeding <tom@tomsmeding.com>2024-10-01 23:18:15 +0200
commit948cae3ca7279040627db393e4372a668f8a22f7 (patch)
tree89eae02aeba1f0bdc30a938c82dc3dfef06cd4af /src/Example
parent1f13bc80915a26473e0622c4afa65c8276b396ff (diff)
Reverse-by-forward, and checking neural (it's wrong)
Diffstat (limited to 'src/Example')
-rw-r--r--src/Example/Format.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Example/Format.hs b/src/Example/Format.hs
new file mode 100644
index 0000000..994f431
--- /dev/null
+++ b/src/Example/Format.hs
@@ -0,0 +1,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