ennocramer / floskell

Floskell is a flexible Haskell source code pretty printer.
BSD 3-Clause "New" or "Revised" License
178 stars 22 forks source link

Floskell removes package-qualified imports #60

Closed cdfa closed 1 year ago

cdfa commented 3 years ago

Original file:

{-# LANGUAGE PackageImports #-}
module Optics.External (module External) where

-- Using PackageImports until https://github.com/commercialhaskell/stack/issues/5077 is solved
import "optics" Optics as External

Floskell output:

{-# LANGUAGE PackageImports #-}

module Optics.External ( module External ) where

-- Using PackageImports until https://github.com/commercialhaskell/stack/issues/5077 is solved
import           Optics as External

Expected output:

{-# LANGUAGE PackageImports #-}

module Optics.External ( module External ) where

-- Using PackageImports until https://github.com/commercialhaskell/stack/issues/5077 is solved
import "optics"  Optics as External
ennocramer commented 1 year ago

This was fixed in floskell-0.10.6.