-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On the `base-compat-batteries` side, it depends on `foldable1-classes-compat` to backport `Foldable1` and `Bifoldable1` to old versions of `base`. Addresses one part of #87.
- Loading branch information
1 parent
a6d4dea
commit e18c466
Showing
14 changed files
with
96 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{-# LANGUAGE CPP, NoImplicitPrelude, PackageImports #-} | ||
module Data.Bifoldable1.Compat ( | ||
module Base | ||
) where | ||
|
||
#if MIN_VERSION_base(4,18,0) | ||
import "base-compat" Data.Bifoldable1.Compat as Base | ||
#else | ||
import "foldable1-classes-compat" Data.Bifoldable1 as Base | ||
#endif |
8 changes: 8 additions & 0 deletions
8
base-compat-batteries/src/Data/Bifoldable1/Compat/Repl/Batteries.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{-# LANGUAGE PackageImports #-} | ||
{-# OPTIONS_GHC -fno-warn-dodgy-exports -fno-warn-unused-imports #-} | ||
-- | Reexports "Data.Bifoldable1.Compat" | ||
-- from a globally unique namespace. | ||
module Data.Bifoldable1.Compat.Repl.Batteries ( | ||
module Data.Bifoldable1.Compat | ||
) where | ||
import "this" Data.Bifoldable1.Compat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{-# LANGUAGE CPP, NoImplicitPrelude, PackageImports #-} | ||
module Data.Foldable1.Compat ( | ||
module Base | ||
) where | ||
|
||
#if MIN_VERSION_base(4,18,0) | ||
import "base-compat" Data.Foldable1.Compat as Base | ||
#else | ||
import "foldable1-classes-compat" Data.Foldable1 as Base | ||
#endif |
8 changes: 8 additions & 0 deletions
8
base-compat-batteries/src/Data/Foldable1/Compat/Repl/Batteries.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{-# LANGUAGE PackageImports #-} | ||
{-# OPTIONS_GHC -fno-warn-dodgy-exports -fno-warn-unused-imports #-} | ||
-- | Reexports "Data.Foldable1.Compat" | ||
-- from a globally unique namespace. | ||
module Data.Foldable1.Compat.Repl.Batteries ( | ||
module Data.Foldable1.Compat | ||
) where | ||
import "this" Data.Foldable1.Compat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{-# LANGUAGE CPP, NoImplicitPrelude #-} | ||
module Data.Bifoldable1.Compat ( | ||
#if MIN_VERSION_base(4,18,0) | ||
module Base | ||
#endif | ||
) where | ||
|
||
#if MIN_VERSION_base(4,18,0) | ||
import Data.Bifoldable1 as Base | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{-# LANGUAGE PackageImports #-} | ||
{-# OPTIONS_GHC -fno-warn-dodgy-exports -fno-warn-unused-imports #-} | ||
-- | Reexports "Data.Bifoldable1.Compat" | ||
-- from a globally unique namespace. | ||
module Data.Bifoldable1.Compat.Repl ( | ||
module Data.Bifoldable1.Compat | ||
) where | ||
import "this" Data.Bifoldable1.Compat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{-# LANGUAGE CPP, NoImplicitPrelude #-} | ||
module Data.Foldable1.Compat ( | ||
#if MIN_VERSION_base(4,18,0) | ||
module Base | ||
#endif | ||
) where | ||
|
||
#if MIN_VERSION_base(4,18,0) | ||
import Data.Foldable1 as Base | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{-# LANGUAGE PackageImports #-} | ||
{-# OPTIONS_GHC -fno-warn-dodgy-exports -fno-warn-unused-imports #-} | ||
-- | Reexports "Data.Foldable1.Compat" | ||
-- from a globally unique namespace. | ||
module Data.Foldable1.Compat.Repl ( | ||
module Data.Foldable1.Compat | ||
) where | ||
import "this" Data.Foldable1.Compat |