-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Haskell example on landing page cut off on mobile #251
Comments
Yeah absolutely. A PR to change to 2 spaces would be a good first step. |
The original example is: primes = filterPrime [2..]
where filterPrime (p:xs) =
p : filterPrime [x | x <- xs, x `mod` p /= 0] The use of the primes = filterPrime [2..]
where
filterPrime (p:xs) =
p : filterPrime [x | x <- xs, x `mod` p /= 0] primes = filterPrime [2..] where
filterPrime (p:xs) =
p : filterPrime [x | x <- xs, x `mod` p /= 0] |
The last one seems fine and is most likely to fit. (There's also talk of replacing the example with something more practical, but I don't think that should affect what we choose to do about spacing for now.) |
@andys8
But leaving it on the first line probably makes more sense. |
Solved via #254 |
The example is not fully visible on my device (6.6 inch screen, but experience depending int he device).
I tried around, and 4 spaces are an improvement, but actually 2 spaces might be necessary with the current setup.
Are you open to using less than 6 spaces of indentation in the code?
Record_2023-02-03-14-44-30.mp4
The text was updated successfully, but these errors were encountered: