floskell icon indicating copy to clipboard operation
floskell copied to clipboard

cannot format haskell source file which contains shebangs

Open AleXoundOS opened this issue 3 years ago • 0 comments

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

AleXoundOS avatar Jun 02 '22 22:06 AleXoundOS