Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 793 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 793 Bytes

Haskell Setup

Introduction

This directory contains Haskell programs for the ancient Egyptian trade route optimization and pyramid resource calculation challenges.

Setup

  1. Clone the Repository:
git clone [email protected]:DmitrySadovnikov/code-archaeology.git
  1. Navigate to the Haskell Directory:
cd code-archaeology/haskell
  1. Build the Docker Image:
docker build -t haskell-dev .
  1. Run the Docker Container:
docker run -it --rm -v $(pwd):/app haskell-dev
  1. Run the Haskell Programs:
    • Trade Route Optimization: Inside the container, run ghc RouteCalc.hs -o RouteCalc && ./RouteCalc
    • Pyramid Resource Calculation: Inside the container, run ghc PyramidResources.hs -o PyramidResources && ./PyramidResources