Skip to content

Commit

Permalink
Correct hyperlinks in tutorial (#201)
Browse files Browse the repository at this point in the history
Looks like the previous versions of the Readme had broken hyperlinks. This commit changes them to be relative paths so they "shouldn't" break in future.
  • Loading branch information
johnchildren authored and judah committed Jun 15, 2018
1 parent 1371517 commit 0cb384a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proto-lens-tutorial/coffee-order/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ We have a bunch of lenses (or prisms) to access the data relating to `Coffee`. W

What we can use them for is setting values! When we are defining the value we will know (and have to know) what type our `CoffeeType` will be. Thus we can do the following, `def & mocha .~ def` where the second `def` is secretly our empty `Mocha` value.<br>

As of commit `87efe00a0fa16b657493ba4043abd014d5c04cd3`, `Prism'` functions are also available for use on `Coffee'Type` sum. The `Prism'` functions are of of the naming convention `_Coffee'Americano`, `_Coffee'Latte`, etc. There is more information on `Prism'`s [here](https://github.com/FintanH/proto-lens/tree/docs/codelab/proto-lens-tutorial#oneof-generation)
As of commit `87efe00a0fa16b657493ba4043abd014d5c04cd3`, `Prism'` functions are also available for use on `Coffee'Type` sum. The `Prism'` functions are of of the naming convention `_Coffee'Americano`, `_Coffee'Latte`, etc. There is more information on `Prism'`s [here](../../docs/tutorial.md#oneof-generation)

## Full Code Example

We can find a full example using the different features [here](https://github.com/FintanH/proto-lens/blob/docs/codelab/proto-lens-tutorial/coffee-order/src/Main.hs).
We can find a full example using the different features [here](./src/Main.hs).

## Did We Miss Something?

Expand Down

0 comments on commit 0cb384a

Please sign in to comment.