Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
e62439c4
Commit
e62439c4
authored
Jul 21, 2011
by
dterei
Browse files
Update safe haskell doc about Data.Typeable
parent
9500b166
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/users_guide/safe_haskell.xml
View file @
e62439c4
...
...
@@ -293,6 +293,12 @@
compilation error will occur. A simple way to think of this is a
<emphasis>
same origin policy
</emphasis>
for overlapping instances
defined in Safe compiled modules.
</listitem>
<listitem><emphasis>
Data.Typeable
</emphasis>
—
We restrict Typeable
instances to only derived ones (offered by GHC through the
<link
linkend=
"deriving-typeable"
><option>
-XDeriveDataTypeable
</option>
</link>
extension). Hand crafted instances of the Typeable type class
are not allowed in Safe Haskell as this can easily be abused to
unsafely coerce between types.
</listitem>
</itemizedlist>
</sect2>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment