idris2-robotlib/Main.idr

19 lines
305 B
Idris
Raw Normal View History

2022-12-08 10:02:19 -05:00
module Main
import Data.NumIdr
||| A type for angles in radians.
public export
Angle : Type
Angle = Double
data Joint : Nat -> Type where
Revolute : Angle -> Angle -> Joint n
Robot : (n : Nat) -> Type
Robot n = List (Either (Joint n) (Vector n Double))
main : IO ()
main = putStrLn "Hello World!"