Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Add Safe Haskell pragmas #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

A1kmm
Copy link

@A1kmm A1kmm commented Jul 8, 2018

  • Data.OpenUnion needs to be marked as trustworthy so it can import Data.OpenUnion.Internal.
  • Data.OpenUnion.Internal does not enforce type-safety due to the ability to perform an arbitrary unsafeCoerce, so it would be incorrect to mark it as trustworthy - so it gets no annotations.
  • All other modules can then be inferred safe - Safe pragma added to ensure this remains the case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant