Created
December 16, 2017 16:50
-
-
Save hdgarrood/a0d2b03f6af2b73ba6c376e4be1aa4ab to your computer and use it in GitHub Desktop.
.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment