-
-
Save nwolverson/f94772a141c68178acb09b68f4d41cbd to your computer and use it in GitHub Desktop.
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module DataTypes where | |
data Foo = Foo | |
mkFoo = Foo | |
data Bar = Bar | |
data Baz = Baz1 | Baz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module HidingImport where | |
import Prelude | |
import Data.Maybe hiding (fromMaybe) | |
foo :: Maybe Unit | |
foo = Just unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ImplicitImport where | |
import Prelude | |
import Data.Maybe | |
foo :: Maybe Unit | |
foo = Just unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ImplicitQualifiedImport where | |
import Prelude | |
import Data.Array as M | |
import Data.Maybe as M | |
foo :: M.Maybe Unit | |
foo = M.Just unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module UnusedDctorExplicitImport where | |
import Prelude | |
import DataTypes (Foo(..), Baz(Baz1, Baz2)) | |
myfoo :: Foo | |
myfoo = Foo | |
mybaz :: Baz | |
mybaz = Baz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module UnusedDctorExplicitImportRetainsDctor where | |
import Prelude | |
import DataTypes (Foo(Foo), Baz(Baz1, Baz2)) | |
myfoo :: Foo | |
myfoo = Foo | |
mybaz :: Baz | |
mybaz = Baz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module UnusedDctorImport where | |
import Prelude | |
import DataTypes (Foo(..), mkFoo, Bar(..)) | |
foo :: Foo | |
foo = mkFoo | |
bar :: Bar | |
bar = Bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module UnusedDctorImportRetainsDctor where | |
import Prelude | |
import DataTypes (Foo(..), mkFoo, Bar(Bar)) | |
foo :: Foo | |
foo = mkFoo | |
bar :: Bar | |
bar = Bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module UnusedExplicitImport where | |
import Data.Maybe (Maybe(..), fromMaybe) | |
foo :: Maybe Int | |
foo = Just 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module UnusedExplicitImportRetainsDctor where | |
import Data.Maybe (Maybe(Just), fromMaybe) | |
foo :: Maybe Int | |
foo = Just 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment