Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Safe Haskell compatability #493

Closed
wants to merge 2 commits into from

3 participants

@deian

This patch makes pretty much every module of pandoc Trustworthy. I hope to convince the authors of the packages pandoc depends on to make their packages Trustworthy, at which point we can turn many of the Trustworthy modules to Safe. If there is some particular module that is not safe, please let me know.

deian and others added some commits
@deian deian everything is made trustworhty
From a brief look at the API, it all seems safe, so I'm currently
labeling all the modules Trustworthy.

TODO: some of the modules may (but are unlikely to) be Safe. In a
later verison, when parsec etc. are labeled Trustworthy, most of the
modules exported by this package can conceivably simply be Safe.
ec3e41c
@alevy alevy Merge pull request #1 from deian/master
trustworthy
6f2a91f
@jgm
Owner

I don't know anything about these new GHC extensions. Could you explain what is meant by the Trustworthy classification, and what impact it has?

@deian deian closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 10, 2012
  1. @deian

    everything is made trustworhty

    deian authored
    From a brief look at the API, it all seems safe, so I'm currently
    labeling all the modules Trustworthy.
    
    TODO: some of the modules may (but are unlikely to) be Safe. In a
    later verison, when parsec etc. are labeled Trustworthy, most of the
    modules exported by this package can conceivably simply be Safe.
Commits on Apr 13, 2012
  1. @alevy

    Merge pull request #1 from deian/master

    alevy authored
    trustworthy
This page is out of date. Refresh to see the latest.
Showing with 136 additions and 0 deletions.
  1. +4 −0 src/Text/Pandoc.hs
  2. +4 −0 src/Text/Pandoc/Biblio.hs
  3. +4 −0 src/Text/Pandoc/Highlighting.hs
  4. +4 −0 src/Text/Pandoc/PDF.hs
  5. +4 −0 src/Text/Pandoc/Parsing.hs
  6. +4 −0 src/Text/Pandoc/Pretty.hs
  7. +4 −0 src/Text/Pandoc/Readers/HTML.hs
  8. +4 −0 src/Text/Pandoc/Readers/LaTeX.hs
  9. +4 −0 src/Text/Pandoc/Readers/Markdown.hs
  10. +4 −0 src/Text/Pandoc/Readers/Native.hs
  11. +4 −0 src/Text/Pandoc/Readers/RST.hs
  12. +4 −0 src/Text/Pandoc/Readers/TeXMath.hs
  13. +4 −0 src/Text/Pandoc/Readers/Textile.hs
  14. +4 −0 src/Text/Pandoc/SelfContained.hs
  15. +4 −0 src/Text/Pandoc/Shared.hs
  16. +4 −0 src/Text/Pandoc/Templates.hs
  17. +4 −0 src/Text/Pandoc/Writers/AsciiDoc.hs
  18. +4 −0 src/Text/Pandoc/Writers/ConTeXt.hs
  19. +4 −0 src/Text/Pandoc/Writers/Docbook.hs
  20. +4 −0 src/Text/Pandoc/Writers/Docx.hs
  21. +4 −0 src/Text/Pandoc/Writers/EPUB.hs
  22. +4 −0 src/Text/Pandoc/Writers/HTML.hs
  23. +4 −0 src/Text/Pandoc/Writers/LaTeX.hs
  24. +4 −0 src/Text/Pandoc/Writers/Man.hs
  25. +4 −0 src/Text/Pandoc/Writers/Markdown.hs
  26. +4 −0 src/Text/Pandoc/Writers/MediaWiki.hs
  27. +4 −0 src/Text/Pandoc/Writers/Native.hs
  28. +4 −0 src/Text/Pandoc/Writers/ODT.hs
  29. +4 −0 src/Text/Pandoc/Writers/OpenDocument.hs
  30. +4 −0 src/Text/Pandoc/Writers/Org.hs
  31. +4 −0 src/Text/Pandoc/Writers/RST.hs
  32. +4 −0 src/Text/Pandoc/Writers/RTF.hs
  33. +4 −0 src/Text/Pandoc/Writers/Texinfo.hs
  34. +4 −0 src/Text/Pandoc/Writers/Textile.hs
View
4 src/Text/Pandoc.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE ScopedTypeVariables, FlexibleInstances #-}
{-
Copyright (C) 2006-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Biblio.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE PatternGuards #-}
{-
Copyright (C) 2008 Andrea Rossato <andrea.rossato@ing.unitn.it>
View
4 src/Text/Pandoc/Highlighting.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2008 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/PDF.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE OverloadedStrings #-}
{-
Copyright (C) 2012 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Parsing.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2006-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Pretty.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-
Copyright (C) 2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Readers/HTML.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2006-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Readers/LaTeX.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2006-2012 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Readers/Markdown.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE RelaxedPolyRec #-} -- needed for inlinesBetween on GHC < 7
{-
Copyright (C) 2006-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Readers/Native.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2011 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Readers/RST.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2006-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Readers/TeXMath.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2007-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Readers/Textile.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2010 Paul Rivier <paul*rivier#demotera*com> | tr '*#' '.@'
View
4 src/Text/Pandoc/SelfContained.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE OverloadedStrings #-}
{-
Copyright (C) 2011 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Shared.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE DeriveDataTypeable #-}
{-
Copyright (C) 2006-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Templates.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}
{-
Copyright (C) 2009-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Writers/AsciiDoc.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE OverloadedStrings #-}
{-
Copyright (C) 2006-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Writers/ConTeXt.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE OverloadedStrings #-}
{-
Copyright (C) 2007-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Writers/Docbook.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2006-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Writers/Docx.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2012 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Writers/EPUB.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Writers/HTML.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-deprecations #-}
{-
View
4 src/Text/Pandoc/Writers/LaTeX.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE OverloadedStrings #-}
{-
Copyright (C) 2006-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Writers/Man.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2007-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Writers/Markdown.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE OverloadedStrings #-}
{-
Copyright (C) 2006-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Writers/MediaWiki.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2008-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Writers/Native.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE OverloadedStrings #-}
{-
Copyright (C) 2006-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Writers/ODT.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2008-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Writers/OpenDocument.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE PatternGuards #-}
{-
Copyright (C) 2008-2010 Andrea Rossato <andrea.rossato@ing.unitn.it>
View
4 src/Text/Pandoc/Writers/Org.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE OverloadedStrings #-}
{-
Copyright (C) 2006-2010 Puneeth Chaganti <punchagan@gmail.com>
View
4 src/Text/Pandoc/Writers/RST.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-# LANGUAGE OverloadedStrings #-}
{-
Copyright (C) 2006-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Writers/RTF.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2006-2010 John MacFarlane <jgm@berkeley.edu>
View
4 src/Text/Pandoc/Writers/Texinfo.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2008-2010 John MacFarlane and Peter Wang
View
4 src/Text/Pandoc/Writers/Textile.hs
@@ -1,3 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
{-
Copyright (C) 2010 John MacFarlane <jgm@berkeley.edu>
Something went wrong with that request. Please try again.