Comments (4)
I think you've accidentally edited the file. Perhaps your IDE suggests tuple sections? The code in the exercise template doesn't use tuple sections:
haskell-mooc/exercises/Set13b.hs
Lines 300 to 301 in 18a2f58
from haskell-mooc.
The code in the exercise template doesn't use tuple sections
It does.
https://github.com/moocfi/haskell-mooc/blob/ghc-9/exercises/Set13b.hs#L301
It is standard practice to wait for OP to respond to a question before closing the ticket. Please reopen.
from haskell-mooc.
From your original message
Set13b.hs:337:16: error: Illegal tuple section: use TupleSections
|
337 | msgSL msg = SL ((),,[msg])
| ^^^^^^^^^^^
From the source we both linked to:
msgSL msg = SL (\s -> ((),s,[msg]))
Note the difference: ((),,[msg])
vs (\s -> ((),s,[msg]))
.
Sorry about closing the ticket, I didn't realise it was important to you to keep it open. Reopened.
from haskell-mooc.
@opqdonut Weird, I donβt remember changing the given code. I run hlint and ormolu on the code base, and am guessing the change came from one of those.
Sorry for the confusion and thank you for supporting this excellent course.
from haskell-mooc.
Related Issues (20)
- Stack build fails HOT 2
- Add Hacktoberfest label HOT 1
- Update the packages to modern Haskell HOT 8
- Set14b.hs does not load in GHCI HOT 2
- Missing tests for prettyPrint, Part 1, Set 5a, Ex. 12. HOT 1
- Add fmap tests for Set 13b Exercise 7 HOT 1
- Data.Traversable forbidden on haskell.mooc.fi yet not forbidden in haskell-mooc/exercises/Set11aTest.hs HOT 2
- Lecture 3 Quiz HOT 1
- Make quizzes more accessible to colorblind users HOT 1
- Encountered an error related to ffi.h while building the project on Apple Silicon macOS Ventura 13.3.1 HOT 2
- Minor typo in lecture 3.9
- Set14bTest.hs doesn't close the database connection which leads to incorrect testing HOT 1
- Ex 6 of Set4a.hs HOT 2
- Exercise 8.3 ambiguous definition HOT 1
- 2.3.1 List Operations: missing `last` HOT 3
- Three different versions of GHCi found in interactive `stack ghci`
- Use HTTPS for external links when possible (round 2) HOT 3
- Set 7 Ex 8 Passes locally, but not on the website HOT 2
- stack build fails, hspec missing dependency libtinfo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haskell-mooc.