Skip to content

Commit

Permalink
More nits
Browse files Browse the repository at this point in the history
  • Loading branch information
endgame committed Feb 22, 2020
1 parent 6a80899 commit 6c38248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bonus/hkd.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ config :: Applicative f => Port -> FilePath -> Config f
config = error "config"

-- The forall in the constraint uses -XQuantifiedConstraints, available since
-- GHC 8.6.1 You could explicitly list them out instead:
-- GHC 8.6.1 . You could explicitly list them out instead:
-- instance (Show (f Port), Show (f FilePath)) => ...
deriving instance (forall a . Eq (f a)) => Eq (Config f)
deriving instance (forall a . Show (f a)) => Show (Config f)
Expand Down Expand Up @@ -172,7 +172,7 @@ extractConfig (Config (Last mp) (Last mdb)) = Config <$> mp <*> mdb
Let's look at the expanded type of `extractConfig`:

```haskell ignore
extractConfig :: PartialConf' -> Maybe (Conf')
extractConfig :: PartialConf' -> Maybe Conf'
extractConfig :: Config Last -> Maybe (Config Identity) -- expand type synonyms
extractConfig :: Config Maybe -> Maybe (Config Identity) -- 'Last' is representationally 'Maybe'
```
Expand Down

0 comments on commit 6c38248

Please sign in to comment.