Skip to content

Commit 500f04d

Browse files
committed
Changed arguments' order per Gregory suggestion
1 parent 0a08d4e commit 500f04d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

theories/Data/Monads/WriterMonad.v

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ Arguments evalWriterT {S} {Monoid_S} {m} {M} {T} _.
9191
Arguments execWriterT {S} {Monoid_S} {m} {M} {T} _.
9292

9393
Section MapWriterT.
94-
Variable A B: Type.
9594
Variable W W': Type.
9695
Variable Monoid_W : Monoid W.
9796
Variable Monoid_W' : Monoid W'.
9897
Variable m n : Type -> Type.
98+
Variable A B: Type.
9999

100100
Open Scope program_scope.
101101

@@ -110,10 +110,10 @@ Section MapWriterT.
110110
End MapWriterT.
111111

112112
Section CastWriterT.
113-
Variable A: Type.
114113
Variable W : Type.
115114
Variable Monoid_W Monoid_W': Monoid W.
116115
Variable m : Type -> Type.
116+
Variable A: Type.
117117

118118
Open Scope program_scope.
119119

@@ -129,8 +129,8 @@ End CastWriterT.
129129
Section WriterMonad.
130130

131131
Variable W: Type.
132-
Variable A: Type.
133132
Variable Monoid_W : Monoid W.
133+
Variable A: Type.
134134

135135
Open Scope program_scope.
136136

@@ -142,10 +142,10 @@ Section WriterMonad.
142142
End WriterMonad.
143143

144144
Section MapWriter.
145-
Variable A B: Type.
146145
Variable W W' : Type.
147146
Variable Monoid_W: Monoid W.
148147
Variable Monoid_W': Monoid W'.
148+
Variable A B: Type.
149149

150150
Open Scope program_scope.
151151

@@ -155,14 +155,14 @@ Section MapWriter.
155155
Definition mapWriter (f: (pprod A W)%type -> (pprod B W')%type) :
156156
writer Monoid_W A -> writer Monoid_W' B
157157
:=
158-
mapWriterT B Monoid_W' ident (mkIdent ∘ f ∘ unIdent).
158+
mapWriterT Monoid_W' ident B (mkIdent ∘ f ∘ unIdent).
159159

160160
End MapWriter.
161161

162162
Section CastWriter.
163-
Variable A: Type.
164163
Variable W : Type.
165164
Variable Monoid_W Monoid_W': Monoid W.
165+
Variable A: Type.
166166

167167
Open Scope program_scope.
168168

0 commit comments

Comments
 (0)