This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.23 AS builder | |
WORKDIR /work | |
COPY client.go . | |
RUN go build client.go | |
FROM debian:bookworm-slim | |
WORKDIR /app | |
COPY --link --from=builder /work/client /app/client | |
CMD ["./client"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Data.List (intersperse) | |
type Name = String | |
type Equations = [(Expr,Expr)] | |
data Expr | |
= Func Name [Expr] -- if [Expr] is [], then it's a constant | |
| Var Name |