-
```haskell
data Color = Red | Blue | Green | Color Int Int Int
equalsColor :: Color -> Color -> Bool
equalsColor Red Red = True
equalsColor Blue Blue = True
equalsColor Green Green = True
equl…
-
tested: https://github.com/justinethier/cyclone/commit/cf66cf1057fcd687cc42d4d7dcaeeef00cba089b
It seems `guard` syntax evaluates its _cond clause_ s in wrong dynamic environment. e.g.)
```schem…
-
```[x | True] = return x``` in the presence of ```MonadComprehensions```,
but hlint incorrectly suggests replacing it with ```[x]``` instead.
Using a trivial guard here for homogeneity in a long lis…
hseg updated
2 months ago
-
From [Black's changelog](https://github.com/psf/black/blob/main/CHANGES.md). Last checked 16.09.2024, Last release: v24.8.0.
Goals:
* Close parity with Black when migrating from Black to Ruff
* …
-
### Environment
- Windows 22H2
- .NET SDK Version: 8.07
### Subject of the issue
Where there is a hierarchy of code that use `Ardalis.GuardClauses` updating the top level package, without …
-
A few recommendations for your project:
- [x] Formatting
More readable code results in more readable code and faster programming (#2)
- [ ] Code aesthetic
Lots of things (e.g. guard clause…
-
Apologies if this already exists, but I wasn't able to find anything obvious in the docs or code to force guards and where clauses to always be hung on the next line. For example, I'd like code to be …
-
Guard clauses should be outside the diamond
![Screenshot 2020-04-17 at 3.34.48 PM.png](https://raw.githubusercontent.com/ziyingli/pe/master/files/d6c81756-ac28-4caf-873b-bc51b58871a6.png)
-
Guard clauses should be outside the diamond
![Screenshot 2020-04-17 at 3.27.01 PM.png](https://raw.githubusercontent.com/ziyingli/pe/master/files/4c3a2b95-999d-4e3f-a8af-3cc4db718a4b.png)
-
Guard clauses should be outside the diamond, not inside the diamond (eg. `Desired exercise found?`)
![Screenshot 2020-04-17 at 3.22.37 PM.png](https://raw.githubusercontent.com/ziyingli/pe/master/fi…