Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Planer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
beekmannju85374
Planer
Commits
3d9b947d
Commit
3d9b947d
authored
7 months ago
by
beekmannju85374
Browse files
Options
Downloads
Patches
Plain Diff
fixed saveToFile
parent
8de0f22a
No related branches found
No related tags found
1 merge request
!14
fixed saveToFile
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
app/Main.hs
+1
-1
1 addition, 1 deletion
app/Main.hs
dist-newstyle/cache/up-to-date
+0
-0
0 additions, 0 deletions
dist-newstyle/cache/up-to-date
presenations.txt
+0
-0
0 additions, 0 deletions
presenations.txt
presentations.txt
+0
-1
0 additions, 1 deletion
presentations.txt
with
1 addition
and
2 deletions
app/Main.hs
+
1
−
1
View file @
3d9b947d
...
...
@@ -105,7 +105,7 @@ generateSchedules rooms startDay endDay professors = groups
saveToFile
::
[[
Presentation
]]
->
FilePath
->
IO
()
saveToFile
presentations
filename
=
do
let
content
=
unlines
$
map
(
unlines
.
map
detailedPrint
)
presentations
let
content
=
init
.
unlines
$
map
(
unlines
.
map
detailedPrint
)
presentations
-- init removes the trailing \n
writeFile
filename
content
loadFromFile
::
FilePath
->
IO
[[
Presentation
]]
...
...
This diff is collapsed.
Click to expand it.
dist-newstyle/cache/up-to-date
+
0
−
0
View file @
3d9b947d
No preview for this file type
This diff is collapsed.
Click to expand it.
savedPres
→
presenations.txt
+
0
−
0
View file @
3d9b947d
File moved
This diff is collapsed.
Click to expand it.
presentations.txt
+
0
−
1
View file @
3d9b947d
...
...
@@ -22,4 +22,3 @@ Presentation {room = "P", day = 2024-05-23, project = "project7", professor = Pr
Presentation {room = "P", day = 2024-06-06, project = "project9", professor = Professor {profName = "P9", unavailableDays = [2024-04-04], availableDays = [], projects = ["project9"]}}
Presentation {room = "P", day = 2024-06-13, project = "THNSensor", professor = Professor {profName = "Zapf", unavailableDays = [2024-04-11], availableDays = [], projects = ["THNSensor"]}}
Presentation {room = "P", day = 2024-06-20, project = "MMO2", professor = Professor {profName = "Schulz", unavailableDays = [2024-04-18], availableDays = [], projects = ["MMO","MMO2"]}}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment