@@ -0,0 +1,17 @@
+(document "main.md"
+
+ {
+ name "rust-sample"
+ dir "s1"
+ cmd [ "cargo clean" "cargo build" ]
+ expose (file "src/main.rs")
+ }
+ name "haskell-sample"
+ dir "s2"
+ cmd [ "cabal new-build" ]
+ expose (sections "Main.hs")
+)
+Here is the full source of a Rust project:
+```rust
+«rust-sample»
+```
+And here are the split-apart chunks of a Haskell source file, starting with the header material
+```haskell
+«haskell-sample/front-matter»
+And the main sources:
+«haskell-sample/functions»
@@ -0,0 +1,2 @@
+Cargo.lock
+target
@@ -0,0 +1,6 @@
+[package]
+name = "s1"
+version = "0.1.0"
+authors = ["Getty Ritter <gettylefou@gmail.com>"]
+[dependencies]
@@ -0,0 +1,3 @@
+fn main() {
+ println!("Hello, world!");
+}
@@ -0,0 +1,4 @@
+module Main where
+main :: IO ()
+main = return ()
@@ -0,0 +1,18 @@
+name: s2
+version: 0.1.0.0
+-- synopsis:
+-- description:
+license: BSD3
+author: Getty Ritter <gettylefou@gmail.com>
+maintainer: Getty Ritter <gettylefou@gmail.com>
+copyright: @2018 Getty Ritter
+-- category:
+build-type: Simple
+cabal-version: >=1.14
+executable s2
+ hs-source-dirs: .
+ main-is: Main.hs
+ default-language: Haskell2010
+ ghc-options: -Wall
+ build-depends: base >=4.7 && <5