lspitzner / brittany

haskell source code formatter
GNU Affero General Public License v3.0
691 stars 67 forks source link

Extra space added in forall #264

Closed pbrisbin closed 4 years ago

pbrisbin commented 5 years ago

This diff is between code formatted by v0.12.0.0 and v0.12.1.0:

 -- | Construction of an action from some JSON-encodable
 someBatchUpdateAction
-  :: forall a . (Typeable a, ToJSON a) => a -> SomeBatchUpdateAction
+  :: forall  a . (Typeable a, ToJSON a) => a -> SomeBatchUpdateAction
 someBatchUpdateAction a =
   SomeBatchUpdateAction $ object ["tag" .= show (typeOf a), "contents" .= a]

I believe v0.12.0.0 is correct and there's a bug adding the extra space in v0.12.1.0.

lspitzner commented 5 years ago

Thanks, this is fixed on master, see 974826f98fa9f08e659dc334edda61bb5c7cfa49.

lspitzner commented 4 years ago

fixed in 0.12.1.1