Skip to content

Instantly share code, notes, and snippets.

@streamerd
streamerd / error log
Created March 7, 2018 12:13
stack build throwing error for type: 'Money', No instance for (Eq Money)
/Users/streamerd/Developer/hs/haskellAtWork/projectz/Project.hs:28:21: error:
• No instance for (Eq Money)
arising from the first field of ‘Sale’ (type ‘Money’)
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
• When deriving the instance for (Eq Transaction)
|
28 | deriving (Show, Eq)
| ^^
@streamerd
streamerd / Main.java
Created April 3, 2017 10:29
SocketCastify created by streamerd - https://repl.it/Grjk/3
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class Main {
public static void main(String[] args) throws InterruptedException, IOException {
File file = new File("nodeIpAddresses");