Skip to content

Commit

Permalink
Use * instead of ?
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Elgar committed Jan 10, 2020
1 parent 3063629 commit bae6b17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Ccap/Codegen/Scala.purs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ smallRecordDecoder name props = do
ps <- traverse (\r -> recordFieldDecoder r <#> (_ <<>> char ',')) props
pure
$ paren_
(text ("scalaz.Apply[Decoder.Form[M, ?]].apply" <> show (Array.length props)))
(text ("scalaz.Apply[Decoder.Form[M, *]].apply" <> show (Array.length props)))
ps
(text ("(" <> name <> ".apply)"))

Expand All @@ -446,12 +446,12 @@ bigRecordDecoder name props = do
decs <- traverse (\r -> recordFieldDecoder r <#> (_ <<>> char ',')) part
pure
$ paren_
(text ("scalaz.Apply[Decoder.Form[M, ?]].tuple" <> show (Array.length part)))
(text ("scalaz.Apply[Decoder.Form[M, *]].tuple" <> show (Array.length part)))
decs
(char ',')
pure
$ paren_
(text ("scalaz.Apply[Decoder.Form[M, ?]].apply" <> show (Array.length parts)))
(text ("scalaz.Apply[Decoder.Form[M, *]].apply" <> show (Array.length parts)))
body
(curly (emptyBox 0 0) [ applyAllParams ])
where
Expand Down
2 changes: 1 addition & 1 deletion test/resources/parser/Printed.scala
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ object Printed {
"y" -> Encoder.int.encode(x.y),
)
def jsonDecoderPoint[M[_]: Monad]: Decoder.Form[M, Point] =
scalaz.Apply[Decoder.Form[M, ?]].apply2(
scalaz.Apply[Decoder.Form[M, *]].apply2(
Decoder.int.property("x"),
Decoder.int.property("y"),
)(Point.apply)
Expand Down

0 comments on commit bae6b17

Please sign in to comment.