Skip to content
This repository
Browse code

No need to look for a ref when a Singleton is used directly

  • Loading branch information...
commit 70094969168033a9bc33575ac98deca37555b75d 1 parent e60640b
Ozgun Ataman ozataman authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  digestive-functors/src/Text/Digestive/Form/Internal.hs
2  digestive-functors/src/Text/Digestive/Form/Internal.hs
@@ -141,6 +141,8 @@ eval' :: Monad m => Path -> Method -> Env m -> Form v m a
141 141
142 142 eval' context method env form = case form of
143 143
  144 + Pure Nothing (Singleton x) -> return (pure x, [])
  145 +
144 146 Pure Nothing _ ->
145 147 error "No ref specified for field"
146 148

0 comments on commit 7009496

Please sign in to comment.
Something went wrong with that request. Please try again.