Add setup instructions for Fedora (#3)

This commit is contained in:
Jan Hrcek 2021-08-11 16:01:18 +02:00 committed by GitHub
parent a57075dcbe
commit 66e9a70479
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -54,6 +54,12 @@ pacman -S sdl2
pacman -S glew
```
#### Fedora
```bash
sudo dnf install SDL2-devel glew-devel
```
### Windows
Inside the sample project's directory:

View File

@ -23,7 +23,7 @@ data Book = Book {
instance FromJSON Book where
parseJSON = withObject "Book" $ \b -> Book
<$> b .: "title"
<*> fmap (fromMaybe []) (b .:? "author_name")
<*> b .:? "author_name" .!= []
<*> b .:? "first_publish_year"
<*> b .:? "cover_i"