Skip to content

Commit 047b284

Browse files
committed
refactor: replace source file copies with README links
- Replace redundant Factorial.hs copy with README link to plinth/src/Factorial.hs - Add README.md files to existing Plinth fibonacci submissions - Use relative paths (../../../../plinth/src/) for GitHub navigation - Eliminates duplicate source code maintenance - Provides clear navigation to original implementation
1 parent 6acfab3 commit 047b284

4 files changed

Lines changed: 38 additions & 46 deletions

File tree

submissions/factorial/Plinth_1.52.0.0_Unisay/source/Factorial.hs

Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Source Code
2+
3+
The source code for this factorial implementation is located in the main repository:
4+
5+
**[📁 plinth/src/Factorial.hs](../../../../plinth/src/Factorial.hs)**
6+
7+
This Haskell module contains:
8+
9+
- `factorial :: Integer -> Integer` - The factorial function implementation
10+
- `factorial10Code :: CompiledCode Integer` - The compiled UPLC program for factorial(10)
11+
12+
The implementation uses recursive approach: `factorial(n) = if n <= 0 then 1 else n * factorial(n-1)`
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Source Code
2+
3+
The source code for this fibonacci implementation is located in the main repository:
4+
5+
**[📁 plinth/src/Fibonacci.hs](../../../../plinth/src/Fibonacci.hs)**
6+
7+
This Haskell module contains:
8+
9+
- `fibonacci :: Integer -> Integer` - The fibonacci function implementation
10+
- `fibonacci25Code :: CompiledCode Integer` - The compiled UPLC program for fibonacci(25)
11+
12+
The implementation uses recursive approach: `fibonacci(n) = if n <= 1 then n else fibonacci(n-1) + fibonacci(n-2)`
13+
14+
**Note**: This submission was created with Plinth 1.49.0.0, while the current source uses 1.52.0.0. The core algorithm remains the same.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Source Code
2+
3+
The source code for this fibonacci implementation is located in the main repository:
4+
5+
**[📁 plinth/src/Fibonacci.hs](../../../../plinth/src/Fibonacci.hs)**
6+
7+
This Haskell module contains:
8+
9+
- `fibonacci :: Integer -> Integer` - The fibonacci function implementation
10+
- `fibonacci25Code :: CompiledCode Integer` - The compiled UPLC program for fibonacci(25)
11+
12+
The implementation uses recursive approach: `fibonacci(n) = if n <= 1 then n else fibonacci(n-1) + fibonacci(n-2)`

0 commit comments

Comments
 (0)