Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
haddock
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ryan Scott
haddock
Commits
2f6362ed
Commit
2f6362ed
authored
10 years ago
by
Simon Hengel
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of StandaloneDeriving
parent
36ad2fd7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
haddock-library/src/Documentation/Haddock/Types.hs
+3
-10
3 additions, 10 deletions
haddock-library/src/Documentation/Haddock/Types.hs
with
3 additions
and
10 deletions
haddock-library/src/Documentation/Haddock/Types.hs
+
3
−
10
View file @
2f6362ed
{-# LANGUAGE DeriveDataTypeable, DeriveFunctor, DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable #-}
{-# LANGUAGE DeriveTraversable, StandaloneDeriving #-}
-- |
-- |
-- Module : Documentation.Haddock.Types
-- Module : Documentation.Haddock.Types
...
@@ -24,12 +23,6 @@ instance Foldable Header where
...
@@ -24,12 +23,6 @@ instance Foldable Header where
instance
Traversable
Header
where
instance
Traversable
Header
where
traverse
f
(
Header
l
a
)
=
Header
l
`
fmap
`
f
a
traverse
f
(
Header
l
a
)
=
Header
l
`
fmap
`
f
a
deriving
instance
Show
a
=>
Show
(
Header
a
)
deriving
instance
(
Show
a
,
Show
b
)
=>
Show
(
DocH
a
b
)
deriving
instance
Eq
a
=>
Eq
(
Header
a
)
deriving
instance
(
Eq
a
,
Eq
b
)
=>
Eq
(
DocH
a
b
)
data
Hyperlink
=
Hyperlink
data
Hyperlink
=
Hyperlink
{
hyperlinkUrl
::
String
{
hyperlinkUrl
::
String
,
hyperlinkLabel
::
Maybe
String
,
hyperlinkLabel
::
Maybe
String
...
@@ -44,7 +37,7 @@ data Picture = Picture
...
@@ -44,7 +37,7 @@ data Picture = Picture
data
Header
id
=
Header
data
Header
id
=
Header
{
headerLevel
::
Int
{
headerLevel
::
Int
,
headerTitle
::
id
,
headerTitle
::
id
}
deriving
Functor
}
deriving
(
Eq
,
Show
,
Functor
)
data
Example
=
Example
data
Example
=
Example
{
exampleExpression
::
String
{
exampleExpression
::
String
...
@@ -73,4 +66,4 @@ data DocH mod id
...
@@ -73,4 +66,4 @@ data DocH mod id
|
DocProperty
String
|
DocProperty
String
|
DocExamples
[
Example
]
|
DocExamples
[
Example
]
|
DocHeader
(
Header
(
DocH
mod
id
))
|
DocHeader
(
Header
(
DocH
mod
id
))
deriving
(
Functor
,
Foldable
,
Traversable
)
deriving
(
Eq
,
Show
,
Functor
,
Foldable
,
Traversable
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment