Skip to content

Commit

Permalink
Made fill inlinable to avoid simplifier ticks exhausted
Browse files Browse the repository at this point in the history
Looks like this fixes #1850
  • Loading branch information
mpscholten committed May 18, 2024
1 parent 7fea884 commit 7116323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IHP/Controller/Param.hs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ instance (FillParams rest record
Right !(value :: fieldType) -> fill @rest (setField @fieldName value record)
Left ParamCouldNotBeParsedException { parserError } -> fill @rest (attachFailure (Proxy @fieldName) (cs parserError) record)
Left ParamNotFoundException {} -> fill @rest record
{-# INLINE fill #-}
{-# INLINABLE fill #-}

ifValid :: (HasField "meta" model ModelSupport.MetaBag) => (Either model model -> IO r) -> model -> IO r
ifValid branch model = branch $! if ModelSupport.isValid model
Expand Down

0 comments on commit 7116323

Please sign in to comment.