Skip to content

Commit

Permalink
Restore Safe Haskell support with base < 4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
glguy committed Aug 14, 2015
1 parent 4449af7 commit 208d7fd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions System/Directory.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{-# LANGUAGE CPP, NondecreasingIndentation #-}

#if !(MIN_VERSION_base(4,8,0))
-- In base-4.8.0 the Foreign module became Safe
{-# LANGUAGE Trustworthy #-}
#endif

-----------------------------------------------------------------------------
-- |
-- Module : System.Directory
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog for the [`directory`][1] package
==========================================

## 1.2.3.1

* Restore support for Safe Haskell with base < 4.8
([#30](https://github.com/haskell/directory/issues/30))

## 1.2.3.0 (July 2015)

* Add support for XDG Base Directory Specification
Expand Down
2 changes: 1 addition & 1 deletion directory.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: directory
version: 1.2.3.0
version: 1.2.3.1
-- NOTE: Don't forget to update ./changelog.md
license: BSD3
license-file: LICENSE
Expand Down

0 comments on commit 208d7fd

Please sign in to comment.