summaryrefslogtreecommitdiff
path: root/doc/forum/DiskImage_creation_does_not_work_on_my_system/comment_9_eebdf852c9d73c7b11b184b7654aa78c._comment
blob: 1b1f1e64d72a7829c3fe0306076d86fb705b823d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[[!comment format=mdwn
 username="joey"
 subject="""comment 9"""
 date="2017-08-24T14:39:05Z"
 content="""
The `DiskImage` data type could be expanded to support different output
formats.

Or, a type class could be used, so eg:

	imageBuilt :: DiskImage d => d -> (FilePath -> Chroot) -> TableType -> [PartSpec ()] -> RevertableProperty (HasInfo + DebianLike) Linux

The type class would just need a function to convert from the raw disk
image to the desired file format. Then anyone could add whatever disk image
formats they want (which can probably shade into containers in some cases).
"""]]