Skip to content

Commit

Permalink
init: 'Functional Programming in Scala'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathon Belotti committed Jul 19, 2021
1 parent bcb5e0a commit 26f0733
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ Currently, the contents of this mono-repo are broken down into the following top
* [**Algorithms**](/algorithms) - Code for Leetcode, mostly.
* [**Books**](/books) - Code for all kinds of practical exercises in various great textbooks. Homework, practicals, exercises, labs, assignments, etc.
* [Computer Systems: A Programmer's Perspective](/books/computer_systems_app)
* [Data Science From Scratch](/books/data_science_from_scratch)
* [Data Science From Scratch](/books/data_science_from_scratch)
* [Functional Programming in Scala](/books/fp_in_scala)
* [Structure and Interpretation of Computer Programs](/books/sicp) 🚧
* [The Algorithm Design Manual](/books/the_algorithm_design_manual)
* [**Concurrency**](/concurrency) - Code written to learn how to solve concurrency problems/exercises using code.
Expand Down
37 changes: 37 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,40 @@ nim_rules_dependencies()


register_toolchains("//tools/build/bazel/py_toolchain:py_toolchain")

###########
# Scala
###########

skylib_version = "1.0.3"
http_archive(
name = "bazel_skylib",
sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
type = "tar.gz",
url = "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/{}/bazel-skylib-{}.tar.gz".format(skylib_version, skylib_version),
)

rules_scala_version = "e7a948ad1948058a7a5ddfbd9d1629d6db839933"
http_archive(
name = "io_bazel_rules_scala",
sha256 = "76e1abb8a54f61ada974e6e9af689c59fd9f0518b49be6be7a631ce9fa45f236",
strip_prefix = "rules_scala-%s" % rules_scala_version,
type = "zip",
url = "https://github.com/bazelbuild/rules_scala/archive/%s.zip" % rules_scala_version,
)

# Stores Scala version and other configuration
# 2.12 is a default version, other versions can be use by passing them explicitly:
# scala_config(scala_version = "2.11.12")
load("@io_bazel_rules_scala//:scala_config.bzl", "scala_config")
scala_config()

load("@io_bazel_rules_scala//scala:scala.bzl", "scala_repositories")
scala_repositories()

load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
rules_proto_dependencies()
rules_proto_toolchains()

load("@io_bazel_rules_scala//scala:toolchains.bzl", "scala_register_toolchains")
scala_register_toolchains()
5 changes: 5 additions & 0 deletions books/fp_in_scala/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## [_Functional Programming in Scala_](https://www.manning.com/books/functional-programming-in-scala)

> 'The Red Book'
I worked on the 1st Edition. The 2nd Edition is supposed to come out late 2021 or in 2022, I think.

0 comments on commit 26f0733

Please sign in to comment.