Reformat the main.hs file according to the type change made to PromptSegment
Refactor Main.hs some
fix bug in new function
got program to compile and run with new type definition for PromptSegment