CLI interface + restructuration + precision fixes Fermat Factorization

This commit is contained in:
2026-01-11 17:58:36 +01:00
parent ada11a25d2
commit 6689ff8ae2
11 changed files with 117 additions and 50 deletions

View File

@@ -1,7 +1,19 @@
module Main where
import qualified Primes ()
import Utils (askChoice)
import qualified FactorizationUI
main :: IO ()
main = do
putStrLn "unimplemented"
putStrLn "Haskell Math Toolkit"
putStrLn "1) Factorization"
putStrLn "2) Modular square root (not yet implemented)"
putStrLn "3) Primality test (not yet implemented)"
choice <- askChoice 3
case choice of
1 -> FactorizationUI.run
2 -> putStrLn "Modular square root: not implemented yet."
3 -> putStrLn "Primality test: not implemented yet."
_ -> error "Impossible"