Skip to content

Commit

Permalink
Move imports out of modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
geo2a committed May 17, 2019
1 parent c9d809b commit 3711ed2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/Control/Applicative.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Require Export Hask.Ltac.
Require Export Hask.Data.Functor.
Require Export Hask.Data.Functor.Const.
Require Import FunctionalExtensionality.

Generalizable All Variables.

Expand Down Expand Up @@ -44,8 +45,6 @@ Module ApplicativeLaws.

Include FunctorLaws.

Require Import FunctionalExtensionality.

Class ApplicativeLaws (f : Type -> Type) `{Applicative f} := {
has_functor_laws :> FunctorLaws f;

Expand Down
7 changes: 3 additions & 4 deletions src/Data/Functor.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Require Import Hask.Ltac.
Require Import FunctionalExtensionality.
Require Import Coq.Classes.Morphisms.
Require Import Coq.Setoids.Setoid.

Generalizable All Variables.

Expand All @@ -23,10 +26,6 @@ Notation "fmap[ M N O ]" :=

Module FunctorLaws.

Require Import FunctionalExtensionality.
Require Import Coq.Classes.Morphisms.
Require Import Coq.Setoids.Setoid.

(* Functors preserve extensional equality for the applied function.
This is needed to perform setoid rewriting within the function
passed to a functor. *)
Expand Down
3 changes: 1 addition & 2 deletions src/Data/Functor/Contravariant.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Require Import Hask.Ltac.
Require Import Hask.Data.Functor.
Require Import FunctionalExtensionality.

Generalizable All Variables.

Expand Down Expand Up @@ -31,8 +32,6 @@ Module ContravariantLaws.

Include FunctorLaws.

Require Import FunctionalExtensionality.

Class ContravariantLaws (f : Type -> Type) `{Contravariant f} := {
contramap_id : forall a : Type, contramap (@id a) = id;
contramap_comp : forall (a b c : Type) (f : b -> c) (g : a -> b),
Expand Down

0 comments on commit 3711ed2

Please sign in to comment.