• Stars
    star
    135
  • Rank 259,175 (Top 6 %)
  • Language
    Scala
  • License
    Apache License 2.0
  • Created over 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Example code to accompany shapeless-guide.

Shapeless Guide Code

Copyright 2016-17 Dave Gurnell. Licensed Apache 2.0.

This repository contains code for the main examples in The Type Astronaut's Guide to Shapeless.

If you want to discuss the content or exercises with the authors, join us in our chat room on Gitter.

Gitter

Using the Source Code

This repository contains two branches: one for exercises and one for solutions. The directory structure is the same in each branch.

You will need to have Git and Java and an internet connection to run the exercises. All other dependendencies are either included with the repo or downloaded on demand during compilation.

Notes on Editors and IDEs

If you don't have a particular preference for a Scala editor or IDE, we recommend the Atom editor and a Linux or OS X terminal. See the instructions below to get started.

If you want to use Scala IDE for Eclipse, we recommend using sbteclipse. Follow the instructions on the sbteclipse web page to install it as a global SBT plugin.

If you want to use IntelliJ IDEA, follow the instructions for Importing an SBT Project in the IntelliJ online documentation.

Getting Started on Linux or OS X

To get started:

  1. Clone this repository to a directory on your hard drive, e.g. ~/shapeless-guide-code:

    bash$ git clone https://github.com/underscoreio/shapeless-guide-code.git
    
  2. Change to the root directory in the repository:

    bash$ cd shapeless-guide-code
    
  3. Run the sbt.sh script. You may have to wait while SBT downloads various dependencies:

    bash$ ./sbt.sh
    # Lots of output here...
    # The first run will take a while...
    
    >
    
  4. Type helloworld/run at the SBT prompt. You may have to wait while SBT downloads various dependencies.

  5. If you see the message "Hello from shapeless!", you're ready to go!

If you have any problems getting started, get in touch on Gitter.

More Repositories

1

shapeless-guide

The Type Astronaut's Guide to Shapeless
TeX
765
star
2

slickless

Support for shapeless HLists/Generics in Slick.
Scala
164
star
3

essential-macros

Examples of simple Scala Macros
Scala
146
star
4

essential-scala

Source code for Underscore's Essential Scala
Scala
118
star
5

essential-slick-code

Source Code for the examples in Essential Slick
Scala
83
star
6

compose

Compositional music composition using Scala, SuperCollider, and Web Audio.
Scala
76
star
7

advanced-scala-code

Code examples for Underscore's Advanced Scala course
Scala
54
star
8

essential-interpreters

Patterns for building interpreters in Scala
Scala
50
star
9

scalax15-slick

Slick workshop for Scala Exchange 2015
Scala
45
star
10

essential-slick

Essential Slick Pandoc Source
TeX
38
star
11

underscore-ebook-template

Template for Underscore eBooks
CoffeeScript
29
star
12

scalax15-interpreters

Source code for the Interpreters workshop at Scala Exchange 2015.
Scala
28
star
13

creative-scala-template

Template for those following Creative Scala
Scala
22
star
14

csvside

CSV reader and writer combinators for Scala. Made with Cats.
Scala
21
star
15

eescala

20
star
16

essential-scala-code

Exercises and examples for the Essential Scala training course.
Scala
20
star
17

essential-play-code

Exercises and solutions for Underscore's Essential Play
Scala
17
star
18

essential-scala-doodle-case-study

The Doodle case study supplement to Essential Scala
Scala
17
star
19

philosopher-emoji

Philosopher emoji for all your online metaphysical needs.
14
star
20

free-objects-code

Code samples accompanying the Essential Scalaz supplement dealing with free monoids and free monads.
Scala
12
star
21

books

HTML
10
star
22

scalaxhack-2016

Topic and project suggestions for ScalaxHack 2016.
9
star
23

doodlebot

An Essential Scala case study using Finch and Scala.js
JavaScript
9
star
24

numeric-vc

Derives instances of Numeric for value classes
Scala
7
star
25

eescala-code

Scala
7
star
26

essential-speaking

Slides and notes on speaking at tech conferences.
6
star
27

essential-scala-exercises

Exercises for Essential Scala (replaces essential-scala-code)
Scala
6
star
28

annihilator

Example implementation of Annihilator type class
Scala
5
star
29

interpreters-and-you

Scala
5
star
30

essential-play

Essential Play
Shell
5
star
31

http4s-example

An example using http4s
Scala
4
star
32

essential-interpreters-code

Code samples from Essential Interpreters
Scala
4
star
33

rtb

Example of real-time bidding engine (for training purposes)
Scala
3
star
34

remarkjs-template

Remarkjs Presentation Template, with Underscore Branding
HTML
3
star
35

essential-slick-workshop

Introductory Slick workshop (slides and code samples).
Scala
3
star
36

chatbot

Online chat with http4s and FS2
Scala
2
star
37

jobby

Automating conversion of jobs spreadsheet data into markdown
Scala
1
star
38

underscoreio

Underscore web site and blog.
HTML
1
star
39

linter-explorer

An extremely brief example of WartRemover and Scapegoat. Two scala linters
Scala
1
star
40

scala-start

Quick start for Scala
Shell
1
star
41

wejo-autumn-2019

Wejo Autumn 2019
Scala
1
star
42

csv-workshop

Functional programming workshop exploring the magical domain of CSV parsing.
Scala
1
star
43

formless

A form / questionnaire library, analogous to Google Forms, with http4s and Finch backends
Scala
1
star