floskell
floskell copied to clipboard
cannot format haskell source file which contains shebangs
Trying to format this Main.hs:
#! /usr/bin/env nix-shell
#! nix-shell -p ghcid
#! nix-shell -p "haskellPackages.ghcWithPackages (p: with p; [ shower ])"
#! nix-shell -i "ghcid -c 'ghci -Wall' -T':!pkill --full ghc\\ .\\*./Main.hs' -T main"
module Main where
import Shower
main :: IO ()
main = printer "Hello"
$ floskell Main.hs
floskell: Main.hs:1:1: Parse error: #!
CallStack (from HasCallStack):
error, called at src/main/Main.hs:161:12 in main:Main