Skip to content

Commit

Permalink
Few tweaks after delivering course 5, and be more precise in TP3
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Oct 15, 2024
1 parent e08ce80 commit 6db8c82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion slides/course-04.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ data Authenticated
-- @type@ defines aliases (shortcuts)
type UserWithAuthStatus a = User

authenticate' :: User -> String -> UserWithAuthStatus Authenticated
authenticate' :: User -> String -> Either String (UserWithAuthStatus Authenticated)
authenticate' = undefined
```

Expand Down
7 changes: 4 additions & 3 deletions tps/TP3.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ main = do
-- 1/ Define a type representing URLs you can enter in a browser address bar,
-- i.e. strings of the form:
-- - http://www.google.fr
-- - google.fr
-- - reddit.com/r/haskell
-- - https://github.com/dmjio/miso/pulls
-- - http://reddit.com/r/haskell
-- 2/ Write a parser from String to your URL type. Its return type must be
-- Either String MyType. The 'Left' case is the error message. Write tests.
-- 3/ We now want to do URL filtering, to grant/forbid access to an URL
Expand All @@ -38,4 +38,5 @@ main = do
-- 5/ Generalize your filter: allow them to be whitelist, i.e. an URL
-- passes the filter only if matches the filter. Write tests.
--
-- Use https://hoogle.haskell.org/ to find the functions you need
-- Use https://hoogle.haskell.org/ to find the functions you need, for example splitOn:
-- https://hackage.haskell.org/package/split-0.2.5/docs/Data-List-Split.html#v:splitOn

0 comments on commit 6db8c82

Please sign in to comment.