Skip to content

Commit

Permalink
chore: clean up top-level files
Browse files Browse the repository at this point in the history
  • Loading branch information
mlms13 committed Mar 9, 2023
1 parent 9477ff7 commit cbe62a1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Empty file removed .coveralls.yml
Empty file.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Michael Martin-Smucker
Copyright (c) 2023 Michael Martin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ let make = (name, age, isAdmin, lastLogin) =>
/**
* Given a JSON value that looks like:
* { "name": "Michael", "age": 32, "roles": ["admin"] }
* { "name": "Alice", "age": 44, "roles": ["admin"] }
*
* you can write a function to convert this JSON into a value of type `user`
*/
Expand All @@ -59,12 +59,12 @@ let decode = json =>
succeed(make)
|> field("name", string)
|> field("age", intFromNumber)
|> field("roles", map(List.contains("admin"), list(string)))
|> field("roles", list(string) |> map(List.contains("admin")))
|> optionalField("lastLogin", date)
|> run(json)
);
let myUser = decode(json); /* Ok({ name: "Michael", ...}) */
let myUser = decode(json); /* Ok({ name: "Alice", ...}) */
```

## Contributing
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"result",
"applicative"
],
"author": "Michael Martin-Smucker",
"author": "Michael Martin",
"license": "MIT",
"peerDependencies": {
"bs-bastet": "^2.0.0",
Expand All @@ -50,4 +50,4 @@
"**/test/*.js"
]
}
}
}

0 comments on commit cbe62a1

Please sign in to comment.